#E2E172#E2E172
#E2E172 is a very light, vivid yellow. Relative luminance 0.712; OKLCH L 88.8% C 0.134 H 108.4°. Best body text is #000000 at 15.25:1 contrast (WCAG AA passes).
Color values
| HEX | #E2E172 |
|---|---|
| RGB | rgb(226, 225, 114) |
| HSL | hsl(59, 66%, 67%) |
| HSV | hsv(59, 50%, 89%) |
| CMYK | cmyk(0%, 0.4%, 49.6%, 11.4%) |
| CIE-LAB | lab(87.60, -14.49, 53.85) |
| CIE-LCH | lch(87.60, 55.77, 105.06°) |
| OKLab | oklab(88.81% -0.0422 0.1271) |
| OKLCH | oklch(88.81% 0.134 108.4) |
| XYZ | xyz(61.3279, 71.2356, 26.4356) |
| Luminance | 0.7123 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (CSS)
#F0E68C
ΔE00 4.05
Dull Yellow
#EEDC5B
ΔE00 5.06
Straw
#FCF679
ΔE00 5.09
Sandy Yellow
#FDEE73
ΔE00 5.11
Yellowish
#FAEE66
ΔE00 5.20
Manilla
#FFFA86
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#E2E172 #7273E2
analogous
#E2A972 #E2E172 #ABE272
triadic
#E2E172 #72E2E1 #E172E2
tetradic
#E2E172 #72E2A9 #7273E2 #E272AB
square
#E2E172 #72E2A9 #7273E2 #E272AB
split-complementary
#E2E172 #72ABE2 #A972E2
monochromatic
#B4B325 #D8D63F #E2E172 #ECECA5 #F7F7D8
Accessibility & contrast
On white
1.38
#E2E172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.25
#E2E172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #E2E172
15.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##E2E172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##E2E172 | 1.00 | 1.38 | 15.25 | 15.25 |
| #FFFFFF | 1.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F0D968
Deuteranopia (green-blind)
#F2DE78
Tritanopia (blue-blind)
#EFD5C8
Achromatopsia (no color)
#DCDCDC
Design tokens & code
CSS
--color: #e2e172; /* rgb */ color: rgb(226, 225, 114); /* oklch */ color: oklch(88.8% 0.134 108.4);
Tailwind
colors: {
custom: {
50: '#edea9d',
500: '#e2e172',
950: '#000000',
},
}SCSS
$custom: #e2e172; $custom-light: #edea9d; $custom-dark: #000000;
JSON
{
"hex": "#e2e172",
"rgb": {
"r": 226,
"g": 225,
"b": 114
},
"hsl": {
"h": 59.464,
"s": 65.882,
"l": 66.667
},
"oklch": {
"l": 0.88806,
"c": 0.13396,
"h": 108.4
},
"luminance": 0.71234
}Semantic roles & 50–950 ramp
primary
#E2E172
secondary
#4344B5
accent
#19CE18
background
#FFFEFC
surface
#FEFDF5
border
#D6D5CF
text
#17160E
muted
#85847F