#DEFD98#DEFD98

#DEFD98 is a very light, vivid yellow-green. Relative luminance 0.880; OKLCH L 94.9% C 0.131 H 122.8°. Best body text is #000000 at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#DEFD98
RGBrgb(222, 253, 152)
HSLhsl(78, 96%, 79%)
HSVhsv(78, 40%, 99%)
CMYKcmyk(12.3%, 0%, 39.9%, 0.8%)
CIE-LABlab(95.18, -25.73, 45.00)
CIE-LCHlch(95.18, 51.84, 119.76°)
OKLaboklab(94.94% -0.0709 0.1099)
OKLCHoklch(94.94% 0.131 122.8)
XYZxyz(70.9168, 88.0470, 42.9584)
Luminance0.8805 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEFD98 #B798FD
analogous
#FDEA98 #DEFD98 #ACFD98
triadic
#DEFD98 #98DEFD #FD98DE
tetradic
#DEFD98 #98FDEA #B798FD #FD98AC
square
#DEFD98 #98FDEA #B798FD #FD98AC
split-complementary
#DEFD98 #98ACFD #EA98FD
monochromatic
#B8FB20 #CBFC5C #DEFD98 #F1FED4 #F5FEE1

Accessibility & contrast

On white

1.13
#DEFD98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.61
#DEFD98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEFD98
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEFD98#FFFFFF#000000##000000
##DEFD981.001.1318.6118.61
#FFFFFF1.131.0021.0021.00
#00000018.6121.001.001.00
##00000018.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF290
Deuteranopia (green-blind)
#FFF19D
Tritanopia (blue-blind)
#E5F4E4
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #defd98;
/* rgb */ color: rgb(222, 253, 152);
/* oklch */ color: oklch(94.9% 0.131 122.8);
Tailwind
colors: {
  custom: {
    50: '#e9feb7',
    500: '#defd98',
    950: '#000000',
  },
}
SCSS
$custom: #defd98;
$custom-light: #e9feb7;
$custom-dark: #000000;
JSON
{
  "hex": "#defd98",
  "rgb": {
    "r": 222,
    "g": 253,
    "b": 152
  },
  "hsl": {
    "h": 78.416,
    "s": 96.19,
    "l": 79.412
  },
  "oklch": {
    "l": 0.94944,
    "c": 0.13079,
    "h": 122.8
  },
  "luminance": 0.88047
}

Semantic roles & 50–950 ramp

primary
#DEFD98
secondary
#835ADF
accent
#00E646
background
#FEFFFD
surface
#FDFFF8
border
#D5D7D1
text
#161711
muted
#848581

Preview Lab

Preview with #DEFD98

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

Preview Lab → · Contrast checker → · Palette generator →

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