#DEF28C#DEF28C

#DEF28C is a very light, vivid yellow-green. Relative luminance 0.809; OKLCH L 92.4% C 0.129 H 118.1°. Best body text is #000000 at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#DEF28C
RGBrgb(222, 242, 140)
HSLhsl(72, 80%, 75%)
HSVhsv(72, 42%, 95%)
CMYKcmyk(8.3%, 0%, 42.1%, 5.1%)
CIE-LABlab(92.10, -21.82, 46.92)
CIE-LCHlch(92.10, 51.74, 114.94°)
OKLaboklab(92.43% -0.0606 0.1137)
OKLCHoklch(92.43% 0.129 118.1)
XYZxyz(66.6103, 80.9277, 36.9174)
Luminance0.8093 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF28C #A08CF2
analogous
#F2D38C #DEF28C #ABF28C
triadic
#DEF28C #8CDEF2 #F28CDE
tetradic
#DEF28C #8CF2D3 #A08CF2 #F28CAB
square
#DEF28C #8CF2D3 #A08CF2 #F28CAB
split-complementary
#DEF28C #8CABF2 #D38CF2
monochromatic
#BEE61E #CEEC55 #DEF28C #EEF8C3 #F7FCE4

Accessibility & contrast

On white

1.22
#DEF28C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.19
#DEF28C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF28C
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF28C#FFFFFF#000000##000000
##DEF28C1.001.2217.1917.19
#FFFFFF1.221.0021.0021.00
#00000017.1921.001.001.00
##00000017.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE884
Deuteranopia (green-blind)
#FCE991
Tritanopia (blue-blind)
#E7E8D9
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #def28c;
/* rgb */ color: rgb(222, 242, 140);
/* oklch */ color: oklch(92.4% 0.129 118.1);
Tailwind
colors: {
  custom: {
    50: '#eaf6af',
    500: '#def28c',
    950: '#000000',
  },
}
SCSS
$custom: #def28c;
$custom-light: #eaf6af;
$custom-dark: #000000;
JSON
{
  "hex": "#def28c",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 140
  },
  "hsl": {
    "h": 71.765,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.92426,
    "c": 0.12882,
    "h": 118.1
  },
  "luminance": 0.80927
}

Semantic roles & 50–950 ramp

primary
#DEF28C
secondary
#6C54CE
accent
#0ADC33
background
#FEFFFD
surface
#FDFEF7
border
#D5D6D0
text
#161710
muted
#848581

Preview Lab

Preview with #DEF28C

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

Preview Lab → · Contrast checker → · Palette generator →

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