#DEF562#DEF562

#DEF562 is a very light, vivid yellow. Relative luminance 0.817; OKLCH L 92.6% C 0.172 H 117.4°. Best body text is #000000 at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#DEF562
RGBrgb(222, 245, 98)
HSLhsl(69, 88%, 67%)
HSVhsv(69, 60%, 96%)
CMYKcmyk(9.4%, 0%, 60%, 3.9%)
CIE-LABlab(92.45, -26.98, 66.33)
CIE-LCHlch(92.45, 71.61, 112.13°)
OKLaboklab(92.56% -0.0789 0.1523)
OKLCHoklch(92.56% 0.172 117.4)
XYZxyz(64.9824, 81.7169, 23.9026)
Luminance0.8172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF562 #7962F5
analogous
#F5C362 #DEF562 #94F562
triadic
#DEF562 #62DEF5 #F562DE
tetradic
#DEF562 #62F5C3 #7962F5 #F56294
square
#DEF562 #62F5C3 #7962F5 #F56294
split-complementary
#DEF562 #6294F5 #C362F5
monochromatic
#B1CF0D #D2F128 #DEF562 #EAF99C #F6FCD5

Accessibility & contrast

On white

1.21
#DEF562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.34
#DEF562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF562
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF562#FFFFFF#000000##000000
##DEF5621.001.2117.3417.34
#FFFFFF1.211.0021.0021.00
#00000017.3421.001.001.00
##00000017.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE951
Deuteranopia (green-blind)
#FFEA6C
Tritanopia (blue-blind)
#EAE8D6
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #def562;
/* rgb */ color: rgb(222, 245, 98);
/* oklch */ color: oklch(92.6% 0.172 117.4);
Tailwind
colors: {
  custom: {
    50: '#ebf894',
    500: '#def562',
    950: '#000000',
  },
}
SCSS
$custom: #def562;
$custom-light: #ebf894;
$custom-dark: #000000;
JSON
{
  "hex": "#def562",
  "rgb": {
    "r": 222,
    "g": 245,
    "b": 98
  },
  "hsl": {
    "h": 69.388,
    "s": 88.024,
    "l": 67.255
  },
  "oklch": {
    "l": 0.92561,
    "c": 0.17152,
    "h": 117.4
  },
  "luminance": 0.81716
}

Semantic roles & 50–950 ramp

primary
#DEF562
secondary
#4830CB
accent
#01E525
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#17170E
muted
#85857F

Preview Lab

Preview with #DEF562

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

Preview Lab → · Contrast checker → · Palette generator →

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