#DEF052#DEF052

#DEF052 is a very light, vivid yellow. Relative luminance 0.785; OKLCH L 91.4% C 0.178 H 115.6°. Best body text is #000000 at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#DEF052
RGBrgb(222, 240, 82)
HSLhsl(67, 84%, 63%)
HSVhsv(67, 66%, 94%)
CMYKcmyk(7.5%, 0%, 65.8%, 5.9%)
CIE-LABlab(90.99, -25.65, 71.12)
CIE-LCHlch(90.99, 75.61, 109.83°)
OKLaboklab(91.35% -0.0767 0.1602)
OKLCHoklch(91.35% 0.178 115.6)
XYZxyz(62.8088, 78.4599, 19.8166)
Luminance0.7846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF052 #6452F0
analogous
#F0B352 #DEF052 #8FF052
triadic
#DEF052 #52DEF0 #F052DE
tetradic
#DEF052 #52F0B3 #6452F0 #F0528F
square
#DEF052 #52F0B3 #6452F0 #F0528F
split-complementary
#DEF052 #528FF0 #B352F0
monochromatic
#A5B810 #D3EB1A #DEF052 #E9F58A #F3FAC3

Accessibility & contrast

On white

1.26
#DEF052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.69
#DEF052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF052
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF052#FFFFFF#000000##000000
##DEF0521.001.2616.6916.69
#FFFFFF1.261.0021.0021.00
#00000016.6921.001.001.00
##00000016.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE43B
Deuteranopia (green-blind)
#FFE65D
Tritanopia (blue-blind)
#ECE3D0
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #def052;
/* rgb */ color: rgb(222, 240, 82);
/* oklch */ color: oklch(91.4% 0.178 115.6);
Tailwind
colors: {
  custom: {
    50: '#ecf48b',
    500: '#def052',
    950: '#000000',
  },
}
SCSS
$custom: #def052;
$custom-light: #ecf48b;
$custom-dark: #000000;
JSON
{
  "hex": "#def052",
  "rgb": {
    "r": 222,
    "g": 240,
    "b": 82
  },
  "hsl": {
    "h": 66.835,
    "s": 84.043,
    "l": 63.137
  },
  "oklch": {
    "l": 0.91351,
    "c": 0.17765,
    "h": 115.6
  },
  "luminance": 0.78459
}

Semantic roles & 50–950 ramp

primary
#DEF052
secondary
#3F2FB7
accent
#05E01E
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#17170C
muted
#85857F

Preview Lab

Preview with #DEF052

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

Preview Lab → · Contrast checker → · Palette generator →

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