Aa
- AA normal text
- Fail
- AA large text
- Fail
- AAA normal text
- Fail
- AAA large text
- Fail
Color reference
Calculated profile
At 38° hue, Moccasin is a high-saturation, very light, warm-hue sRGB color. Its relative luminance is 80.08%. For text on this background, #000000 produces the stronger contrast at 17.02:1.
02
Equivalent sRGB notations calculated from the same six-digit HEX value.
03
Ratios use WCAG relative luminance. Passing a ratio does not by itself certify an interface.
Aa
Aa
04
Tints mix the color with white; shades mix it with black in sRGB.
05
These colors keep the original HSL saturation and lightness while rotating hue. They are mathematical starting points, not automatic design recommendations.
06
Eight-digit HEX and modern rgb() alpha syntax for the same opacity.
07
A small custom-property block using the calculated foreground with the stronger black-or-white contrast.
--color-moccasin: #FFE4B5;
--color-moccasin-rgb: 255 228 181;
--color-moccasin-hsl: 38 100% 85%;
color: #000000;
background-color: var(--color-moccasin);Community review
Correction for Moccasin#FFE4B5
Found an inaccurate name, explanation, source, or accessibility detail? Send a concise correction for editorial review.
08 / Verification
The color name and HEX value are checked against the cited standard. RGB, HSL, HWB, luminance, and contrast are then calculated from that HEX value using published formulas.
Source for the name and HEX: W3C CSS named colors