#DEF162#DEF162

#DEF162 is a very light, vivid yellow. Relative luminance 0.793; OKLCH L 91.7% C 0.167 H 116.2°. Best body text is #000000 at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#DEF162
RGBrgb(222, 241, 98)
HSLhsl(68, 84%, 66%)
HSVhsv(68, 59%, 95%)
CMYKcmyk(7.9%, 0%, 59.3%, 5.5%)
CIE-LABlab(91.38, -25.09, 65.16)
CIE-LCHlch(91.38, 69.83, 111.06°)
OKLaboklab(91.7% -0.0736 0.1498)
OKLCHoklch(91.7% 0.167 116.2)
XYZxyz(63.7854, 79.3228, 23.5036)
Luminance0.7932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF162 #7562F1
analogous
#F1BD62 #DEF162 #97F162
triadic
#DEF162 #62DEF1 #F162DE
tetradic
#DEF162 #62F1BD #7562F1 #F16297
square
#DEF162 #62F1BD #7562F1 #F16297
split-complementary
#DEF162 #6297F1 #BD62F1
monochromatic
#AFC712 #D2EC2A #DEF162 #EAF69A #F6FBD2

Accessibility & contrast

On white

1.25
#DEF162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.86
#DEF162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF162
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF162#FFFFFF#000000##000000
##DEF1621.001.2516.8616.86
#FFFFFF1.251.0021.0021.00
#00000016.8621.001.001.00
##00000016.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE552
Deuteranopia (green-blind)
#FFE76B
Tritanopia (blue-blind)
#EBE4D3
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #def162;
/* rgb */ color: rgb(222, 241, 98);
/* oklch */ color: oklch(91.7% 0.167 116.2);
Tailwind
colors: {
  custom: {
    50: '#ebf594',
    500: '#def162',
    950: '#000000',
  },
}
SCSS
$custom: #def162;
$custom-light: #ebf594;
$custom-dark: #000000;
JSON
{
  "hex": "#def162",
  "rgb": {
    "r": 222,
    "g": 241,
    "b": 98
  },
  "hsl": {
    "h": 67.972,
    "s": 83.626,
    "l": 66.471
  },
  "oklch": {
    "l": 0.91703,
    "c": 0.16692,
    "h": 116.2
  },
  "luminance": 0.79322
}

Semantic roles & 50–950 ramp

primary
#DEF162
secondary
#4633C4
accent
#05E022
background
#FFFFFC
surface
#FEFEF5
border
#D6D6CF
text
#17170E
muted
#85857F

Preview Lab

Preview with #DEF162

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

Preview Lab → · Contrast checker → · Palette generator →

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