#DEF871#DEF871
#DEF871 is a very light, vivid yellow-green. Relative luminance 0.839; OKLCH L 93.4% C 0.163 H 118.8°. Best body text is #000000 at 17.77:1 contrast (WCAG AA passes).
Color values
| HEX | #DEF871 |
|---|---|
| RGB | rgb(222, 248, 113) |
| HSL | hsl(72, 91%, 71%) |
| HSV | hsv(72, 54%, 97%) |
| CMYK | cmyk(10.5%, 0%, 54.4%, 2.7%) |
| CIE-LAB | lab(93.39, -27.24, 60.98) |
| CIE-LCH | lch(93.39, 66.78, 114.07°) |
| OKLab | oklab(93.36% -0.0782 0.1425) |
| OKLCH | oklch(93.36% 0.163 118.8) |
| XYZ | xyz(66.6731, 83.8571, 28.2932) |
| Luminance | 0.8386 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Pear
#CBF85F
ΔE00 3.40
Light Yellow Green
#CCFD7F
ΔE00 4.81
Yellow Green
#C8FD3D
ΔE00 5.47
Faded Yellow
#FEFF7F
ΔE00 5.75
Yellowish Tan
#FCFC81
ΔE00 5.77
Butter
#FFFF81
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#DEF871 #8B71F8
analogous
#F8CF71 #DEF871 #9AF871
triadic
#DEF871 #71DEF8 #F871DE
tetradic
#DEF871 #71F8CF #8B71F8 #F8719A
square
#DEF871 #71F8CF #8B71F8 #F8719A
split-complementary
#DEF871 #719AF8 #CF71F8
monochromatic
#BAE30B #D0F537 #DEF871 #ECFBAB #F8FEE2
Accessibility & contrast
On white
1.18
#DEF871 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.77
#DEF871 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #DEF871
17.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##DEF871 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##DEF871 | 1.00 | 1.18 | 17.77 | 17.77 |
| #FFFFFF | 1.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.77 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.77 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEC63
Deuteranopia (green-blind)
#FFED79
Tritanopia (blue-blind)
#E9ECDA
Achromatopsia (no color)
#ECECEC
Design tokens & code
CSS
--color: #def871; /* rgb */ color: rgb(222, 248, 113); /* oklch */ color: oklch(93.4% 0.163 118.8);
Tailwind
colors: {
custom: {
50: '#ebfa9e',
500: '#def871',
950: '#000000',
},
}SCSS
$custom: #def871; $custom-light: #ebfa9e; $custom-dark: #000000;
JSON
{
"hex": "#def871",
"rgb": {
"r": 222,
"g": 248,
"b": 113
},
"hsl": {
"h": 71.556,
"s": 90.604,
"l": 70.784
},
"oklch": {
"l": 0.93358,
"c": 0.16257,
"h": 118.8
},
"luminance": 0.83857
}Semantic roles & 50–950 ramp
primary
#DEF871
secondary
#583AD3
accent
#00E62C
background
#FFFFFC
surface
#FEFFF5
border
#D6D7CF
text
#16170F
muted
#858580