#DEF874#DEF874

#DEF874 is a very light, vivid yellow-green. Relative luminance 0.839; OKLCH L 93.4% C 0.160 H 118.9°. Best body text is #000000 at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#DEF874
RGBrgb(222, 248, 116)
HSLhsl(72, 90%, 71%)
HSVhsv(72, 53%, 97%)
CMYKcmyk(10.5%, 0%, 53.2%, 2.7%)
CIE-LABlab(93.42, -26.99, 59.68)
CIE-LCHlch(93.42, 65.50, 114.33°)
OKLaboklab(93.39% -0.0772 0.14)
OKLCHoklch(93.39% 0.16 118.9)
XYZxyz(66.8448, 83.9258, 29.1975)
Luminance0.8393 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF874 #8E74F8
analogous
#F8D074 #DEF874 #9CF874
triadic
#DEF874 #74DEF8 #F874DE
tetradic
#DEF874 #74F8D0 #8E74F8 #F8749C
square
#DEF874 #74F8D0 #8E74F8 #F8749C
split-complementary
#DEF874 #749CF8 #D074F8
monochromatic
#BBE60C #D0F53A #DEF874 #ECFBAE #F8FEE2

Accessibility & contrast

On white

1.18
#DEF874 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.79
#DEF874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF874
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF874#FFFFFF#000000##000000
##DEF8741.001.1817.7917.79
#FFFFFF1.181.0021.0021.00
#00000017.7921.001.001.00
##00000017.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC67
Deuteranopia (green-blind)
#FFED7C
Tritanopia (blue-blind)
#E9ECDB
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #def874;
/* rgb */ color: rgb(222, 248, 116);
/* oklch */ color: oklch(93.4% 0.160 118.9);
Tailwind
colors: {
  custom: {
    50: '#eafaa0',
    500: '#def874',
    950: '#000000',
  },
}
SCSS
$custom: #def874;
$custom-light: #eafaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#def874",
  "rgb": {
    "r": 222,
    "g": 248,
    "b": 116
  },
  "hsl": {
    "h": 71.818,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.93392,
    "c": 0.15991,
    "h": 118.9
  },
  "luminance": 0.83925
}

Semantic roles & 50–950 ramp

primary
#DEF874
secondary
#5A3DD3
accent
#00E62D
background
#FFFFFC
surface
#FEFFF5
border
#D6D7CF
text
#16170F
muted
#858580

Preview Lab

Preview with #DEF874

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#DEF874 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva