#ECD97E#ECD97E
#ECD97E is a very light, moderate yellow. Relative luminance 0.690; OKLCH L 88.2% C 0.114 H 97.8°. Best body text is #000000 at 14.79:1 contrast (WCAG AA passes).
Color values
| HEX | #ECD97E |
|---|---|
| RGB | rgb(236, 217, 126) |
| HSL | hsl(50, 74%, 71%) |
| HSV | hsv(50, 47%, 93%) |
| CMYK | cmyk(0%, 8.1%, 46.6%, 7.5%) |
| CIE-LAB | lab(86.49, -5.41, 46.97) |
| CIE-LCH | lch(86.49, 47.28, 96.57°) |
| OKLab | oklab(88.17% -0.0155 0.1128) |
| OKLCH | oklch(88.17% 0.114 97.8) |
| XYZ | xyz(63.1726, 68.9672, 29.7190) |
| Luminance | 0.6896 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 1.33
Wheat (survey)
#FBDD7E
ΔE00 3.32
Khaki (CSS)
#F0E68C
ΔE00 3.59
Sand (survey)
#E2CA76
ΔE00 3.78
Pale Gold
#FDDE6C
ΔE00 4.52
Yellow Tan
#FFE36E
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ECD97E #7E91EC
analogous
#ECA27E #ECD97E #C8EC7E
triadic
#ECD97E #7EECD9 #D97EEC
tetradic
#ECD97E #7EECA2 #7E91EC #EC7EC8
square
#ECD97E #7EECA2 #7E91EC #EC7EC8
split-complementary
#ECD97E #7EC8EC #A27EEC
monochromatic
#D1B21F #E4C949 #ECD97E #F4E9B3 #FBF7E4
Accessibility & contrast
On white
1.42
#ECD97E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.79
#ECD97E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ECD97E
14.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ECD97E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ECD97E | 1.00 | 1.42 | 14.79 | 14.79 |
| #FFFFFF | 1.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E9D577
Deuteranopia (green-blind)
#EEDB82
Tritanopia (blue-blind)
#FBCDC3
Achromatopsia (no color)
#D8D8D8
Design tokens & code
CSS
--color: #ecd97e; /* rgb */ color: rgb(236, 217, 126); /* oklch */ color: oklch(88.2% 0.114 97.8);
Tailwind
colors: {
custom: {
50: '#f4e4a5',
500: '#ecd97e',
950: '#000000',
},
}SCSS
$custom: #ecd97e; $custom-light: #f4e4a5; $custom-dark: #000000;
JSON
{
"hex": "#ecd97e",
"rgb": {
"r": 236,
"g": 217,
"b": 126
},
"hsl": {
"h": 49.636,
"s": 74.324,
"l": 70.98
},
"oklch": {
"l": 0.88167,
"c": 0.11384,
"h": 97.8
},
"luminance": 0.68965
}Semantic roles & 50–950 ramp
primary
#ECD97E
secondary
#495EC5
accent
#31D60F
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480