#ECF162#ECF162
#ECF162 is a very light, vivid yellow. Relative luminance 0.816; OKLCH L 92.8% C 0.163 H 111.1°. Best body text is #000000 at 17.33:1 contrast (WCAG AA passes).
Color values
| HEX | #ECF162 |
|---|---|
| RGB | rgb(236, 241, 98) |
| HSL | hsl(62, 84%, 66%) |
| HSV | hsv(62, 59%, 95%) |
| CMYK | cmyk(2.1%, 0%, 59.3%, 5.5%) |
| CIE-LAB | lab(92.41, -19.54, 66.58) |
| CIE-LCH | lch(92.41, 69.39, 106.35°) |
| OKLab | oklab(92.78% -0.0588 0.1525) |
| OKLCH | oklch(92.78% 0.163 111.1) |
| XYZ | xyz(68.2538, 81.6269, 23.7130) |
| Luminance | 0.8163 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Butter Yellow
#FFFD74
ΔE00 3.19
Pastel Yellow
#FFFE71
ΔE00 3.19
Canary
#FDFF63
ΔE00 3.30
Custard
#FFFD78
ΔE00 3.30
Straw
#FCF679
ΔE00 3.34
Off Yellow
#F1F33F
ΔE00 3.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ECF162 #6762F1
analogous
#F1AF62 #ECF162 #A5F162
triadic
#ECF162 #62ECF1 #F162EC
tetradic
#ECF162 #62F1AF #6762F1 #F162A5
square
#ECF162 #62F1AF #6762F1 #F162A5
split-complementary
#ECF162 #62A5F1 #AF62F1
monochromatic
#C1C712 #E5EC2A #ECF162 #F3F69A #FAFBD2
Accessibility & contrast
On white
1.21
#ECF162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.33
#ECF162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ECF162
17.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ECF162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ECF162 | 1.00 | 1.21 | 17.33 | 17.33 |
| #FFFFFF | 1.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE751
Deuteranopia (green-blind)
#FFEB6B
Tritanopia (blue-blind)
#FBE3D3
Achromatopsia (no color)
#E9E9E9
Design tokens & code
CSS
--color: #ecf162; /* rgb */ color: rgb(236, 241, 98); /* oklch */ color: oklch(92.8% 0.163 111.1);
Tailwind
colors: {
custom: {
50: '#f5f594',
500: '#ecf162',
950: '#000000',
},
}SCSS
$custom: #ecf162; $custom-light: #f5f594; $custom-dark: #000000;
JSON
{
"hex": "#ecf162",
"rgb": {
"r": 236,
"g": 241,
"b": 98
},
"hsl": {
"h": 62.098,
"s": 83.626,
"l": 66.471
},
"oklch": {
"l": 0.92782,
"c": 0.16347,
"h": 111.1
},
"luminance": 0.81625
}Semantic roles & 50–950 ramp
primary
#ECF162
secondary
#3833C4
accent
#05E00D
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170E
muted
#85857F