#DEF371#DEF371
#DEF371 is a very light, vivid yellow. Relative luminance 0.808; OKLCH L 92.3% C 0.157 H 117.2°. Best body text is #000000 at 17.16:1 contrast (WCAG AA passes).
Color values
| HEX | #DEF371 |
|---|---|
| RGB | rgb(222, 243, 113) |
| HSL | hsl(70, 84%, 70%) |
| HSV | hsv(70, 53%, 95%) |
| CMYK | cmyk(8.6%, 0%, 53.5%, 4.7%) |
| CIE-LAB | lab(92.05, -24.88, 59.44) |
| CIE-LCH | lch(92.05, 64.43, 112.71°) |
| OKLab | oklab(92.29% -0.0716 0.1392) |
| OKLCH | oklch(92.29% 0.157 117.2) |
| XYZ | xyz(65.1564, 80.8237, 27.7877) |
| Luminance | 0.8082 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pear
#CBF85F
ΔE00 4.29
Yellowish Tan
#FCFC81
ΔE00 5.28
Faded Yellow
#FEFF7F
ΔE00 5.41
Pale Yellow
#FFFF84
ΔE00 5.61
Butter
#FFFF81
ΔE00 5.61
Light Yellow Green
#CCFD7F
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#DEF371 #8671F3
analogous
#F3C771 #DEF371 #9DF371
triadic
#DEF371 #71DEF3 #F371DE
tetradic
#DEF371 #71F3C7 #8671F3 #F3719D
square
#DEF371 #71F3C7 #8671F3 #F3719D
split-complementary
#DEF371 #719DF3 #C771F3
monochromatic
#B8D712 #D1EE39 #DEF371 #EBF8A9 #F8FDE2
Accessibility & contrast
On white
1.22
#DEF371 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.16
#DEF371 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #DEF371
17.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##DEF371 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##DEF371 | 1.00 | 1.22 | 17.16 | 17.16 |
| #FFFFFF | 1.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE864
Deuteranopia (green-blind)
#FFE979
Tritanopia (blue-blind)
#E9E7D6
Achromatopsia (no color)
#E8E8E8
Design tokens & code
CSS
--color: #def371; /* rgb */ color: rgb(222, 243, 113); /* oklch */ color: oklch(92.3% 0.157 117.2);
Tailwind
colors: {
custom: {
50: '#eaf79d',
500: '#def371',
950: '#000000',
},
}SCSS
$custom: #def371; $custom-light: #eaf79d; $custom-dark: #000000;
JSON
{
"hex": "#def371",
"rgb": {
"r": 222,
"g": 243,
"b": 113
},
"hsl": {
"h": 69.692,
"s": 84.416,
"l": 69.804
},
"oklch": {
"l": 0.92288,
"c": 0.15653,
"h": 117.2
},
"luminance": 0.80823
}Semantic roles & 50–950 ramp
primary
#DEF371
secondary
#533BCD
accent
#05E128
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#16170F
muted
#858580