#F2E172#F2E172
#F2E172 is a very light, vivid yellow. Relative luminance 0.739; OKLCH L 90.1% C 0.133 H 100.7°. Best body text is #000000 at 15.79:1 contrast (WCAG AA passes).
Color values
| HEX | #F2E172 |
|---|---|
| RGB | rgb(242, 225, 114) |
| HSL | hsl(52, 83%, 70%) |
| HSV | hsv(52, 53%, 95%) |
| CMYK | cmyk(0%, 7%, 52.9%, 5.1%) |
| CIE-LAB | lab(88.90, -8.08, 55.70) |
| CIE-LCH | lch(88.90, 56.28, 98.25°) |
| OKLab | oklab(90.15% -0.0248 0.1309) |
| OKLCH | oklch(90.15% 0.133 100.7) |
| XYZ | xyz(66.5826, 73.9450, 26.6819) |
| Luminance | 0.7394 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 2.48
Sandy
#F1DA7A
ΔE00 2.97
Sand Yellow
#FCE166
ΔE00 2.97
Sandy Yellow
#FDEE73
ΔE00 3.06
Yellow Tan
#FFE36E
ΔE00 3.07
Khaki (CSS)
#F0E68C
ΔE00 3.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2E172 #7283F2
analogous
#F2A172 #F2E172 #C3F272
triadic
#F2E172 #72F2E1 #E172F2
tetradic
#F2E172 #72F2A1 #7283F2 #F272C3
square
#F2E172 #72F2A1 #7283F2 #F272C3
split-complementary
#F2E172 #72C3F2 #A172F2
monochromatic
#D6BC14 #EDD53A #F2E172 #F7EDAA #FCF9E2
Accessibility & contrast
On white
1.33
#F2E172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.79
#F2E172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2E172
15.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2E172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2E172 | 1.00 | 1.33 | 15.79 | 15.79 |
| #FFFFFF | 1.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F3DB68
Deuteranopia (green-blind)
#F8E277
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF
Design tokens & code
CSS
--color: #f2e172; /* rgb */ color: rgb(242, 225, 114); /* oklch */ color: oklch(90.1% 0.133 100.7);
Tailwind
colors: {
custom: {
50: '#f9ea9d',
500: '#f2e172',
950: '#000000',
},
}SCSS
$custom: #f2e172; $custom-light: #f9ea9d; $custom-dark: #000000;
JSON
{
"hex": "#f2e172",
"rgb": {
"r": 242,
"g": 225,
"b": 114
},
"hsl": {
"h": 52.031,
"s": 83.117,
"l": 69.804
},
"oklch": {
"l": 0.9015,
"c": 0.13323,
"h": 100.7
},
"luminance": 0.73943
}Semantic roles & 50–950 ramp
primary
#F2E172
secondary
#3D50CC
accent
#23E006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F