#F2E171#F2E171
#F2E171 is a very light, vivid yellow. Relative luminance 0.739; OKLCH L 90.1% C 0.134 H 100.8°. Best body text is #000000 at 15.78:1 contrast (WCAG AA passes).
Color values
| HEX | #F2E171 |
|---|---|
| RGB | rgb(242, 225, 113) |
| HSL | hsl(52, 83%, 70%) |
| HSV | hsv(52, 53%, 95%) |
| CMYK | cmyk(0%, 7%, 53.3%, 5.1%) |
| CIE-LAB | lab(88.89, -8.16, 56.15) |
| CIE-LCH | lch(88.89, 56.74, 98.27°) |
| OKLab | oklab(90.14% -0.0251 0.1318) |
| OKLCH | oklch(90.14% 0.134 100.8) |
| XYZ | xyz(66.5260, 73.9224, 26.3838) |
| Luminance | 0.7392 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 2.37
Sand Yellow
#FCE166
ΔE00 2.91
Sandy Yellow
#FDEE73
ΔE00 3.00
Yellow Tan
#FFE36E
ΔE00 3.05
Sandy
#F1DA7A
ΔE00 3.06
Pale Gold
#FDDE6C
ΔE00 3.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2E171 #7182F2
analogous
#F2A171 #F2E171 #C3F271
triadic
#F2E171 #71F2E1 #E171F2
tetradic
#F2E171 #71F2A1 #7182F2 #F271C3
square
#F2E171 #71F2A1 #7182F2 #F271C3
split-complementary
#F2E171 #71C3F2 #A171F2
monochromatic
#D5BC14 #EDD539 #F2E171 #F7EDA9 #FCF9E1
Accessibility & contrast
On white
1.33
#F2E171 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.78
#F2E171 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2E171
15.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2E171 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2E171 | 1.00 | 1.33 | 15.78 | 15.78 |
| #FFFFFF | 1.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F3DB66
Deuteranopia (green-blind)
#F8E276
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF
Design tokens & code
CSS
--color: #f2e171; /* rgb */ color: rgb(242, 225, 113); /* oklch */ color: oklch(90.1% 0.134 100.8);
Tailwind
colors: {
custom: {
50: '#f9ea9d',
500: '#f2e171',
950: '#000000',
},
}SCSS
$custom: #f2e171; $custom-light: #f9ea9d; $custom-dark: #000000;
JSON
{
"hex": "#f2e171",
"rgb": {
"r": 242,
"g": 225,
"b": 113
},
"hsl": {
"h": 52.093,
"s": 83.226,
"l": 69.608
},
"oklch": {
"l": 0.90139,
"c": 0.13415,
"h": 100.8
},
"luminance": 0.7392
}Semantic roles & 50–950 ramp
primary
#F2E171
secondary
#3C4FCB
accent
#23E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F