#E8D162#E8D162
#E8D162 is a very light, vivid yellow. Relative luminance 0.636; OKLCH L 85.8% C 0.133 H 97.7°. Best body text is #000000 at 13.73:1 contrast (WCAG AA passes).
Color values
| HEX | #E8D162 |
|---|---|
| RGB | rgb(232, 209, 98) |
| HSL | hsl(50, 74%, 65%) |
| HSV | hsv(50, 58%, 91%) |
| CMYK | cmyk(0%, 9.9%, 57.8%, 9%) |
| CIE-LAB | lab(83.78, -5.29, 56.91) |
| CIE-LCH | lch(83.78, 57.15, 95.31°) |
| OKLab | oklab(85.84% -0.0179 0.132) |
| OKLCH | oklch(85.84% 0.133 97.7) |
| XYZ | xyz(58.2860, 63.6411, 20.7667) |
| Luminance | 0.6364 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 3.05
Light Mustard
#F7D560
ΔE00 3.25
Dull Yellow
#EEDC5B
ΔE00 3.35
Maize
#F4D054
ΔE00 3.66
Pale Gold
#FDDE6C
ΔE00 3.88
Sand Yellow
#FCE166
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#E8D162 #6279E8
analogous
#E88E62 #E8D162 #BCE862
triadic
#E8D162 #62E8D1 #D162E8
tetradic
#E8D162 #62E88E #6279E8 #E862BC
square
#E8D162 #62E88E #6279E8 #E862BC
split-complementary
#E8D162 #62BCE8 #8E62E8
monochromatic
#B59B1B #E0C12D #E8D162 #F0E197 #F8F0CD
Accessibility & contrast
On white
1.53
#E8D162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.73
#E8D162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #E8D162
13.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##E8D162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##E8D162 | 1.00 | 1.53 | 13.73 | 13.73 |
| #FFFFFF | 1.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E3CC57
Deuteranopia (green-blind)
#E9D467
Tritanopia (blue-blind)
#F8C3B8
Achromatopsia (no color)
#D1D1D1
Design tokens & code
CSS
--color: #e8d162; /* rgb */ color: rgb(232, 209, 98); /* oklch */ color: oklch(85.8% 0.133 97.7);
Tailwind
colors: {
custom: {
50: '#f2de92',
500: '#e8d162',
950: '#000000',
},
}SCSS
$custom: #e8d162; $custom-light: #f2de92; $custom-dark: #000000;
JSON
{
"hex": "#e8d162",
"rgb": {
"r": 232,
"g": 209,
"b": 98
},
"hsl": {
"h": 49.701,
"s": 74.444,
"l": 64.706
},
"oklch": {
"l": 0.85838,
"c": 0.1332,
"h": 97.7
},
"luminance": 0.63639
}Semantic roles & 50–950 ramp
primary
#E8D162
secondary
#394EB5
accent
#31D70F
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#17150D
muted
#85847F