#DEF252#DEF252

#DEF252 is a very light, vivid yellow. Relative luminance 0.796; OKLCH L 91.8% C 0.180 H 116.2°. Best body text is #000000 at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#DEF252
RGBrgb(222, 242, 82)
HSLhsl(68, 86%, 64%)
HSVhsv(68, 66%, 95%)
CMYKcmyk(8.3%, 0%, 66.1%, 5.1%)
CIE-LABlab(91.52, -26.60, 71.67)
CIE-LCHlch(91.52, 76.45, 110.36°)
OKLaboklab(91.78% -0.0794 0.1614)
OKLCHoklch(91.78% 0.18 116.2)
XYZxyz(63.4008, 79.6439, 20.0139)
Luminance0.7964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF252 #6652F2
analogous
#F2B652 #DEF252 #8EF252
triadic
#DEF252 #52DEF2 #F252DE
tetradic
#DEF252 #52F2B6 #6652F2 #F2528E
square
#DEF252 #52F2B6 #6652F2 #F2528E
split-complementary
#DEF252 #528EF2 #B652F2
monochromatic
#A6BC0E #D3EE19 #DEF252 #E9F68B #F4FBC4

Accessibility & contrast

On white

1.24
#DEF252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.93
#DEF252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF252
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF252#FFFFFF#000000##000000
##DEF2521.001.2416.9316.93
#FFFFFF1.241.0021.0021.00
#00000016.9321.001.001.00
##00000016.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE63B
Deuteranopia (green-blind)
#FFE85E
Tritanopia (blue-blind)
#EBE5D2
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #def252;
/* rgb */ color: rgb(222, 242, 82);
/* oklch */ color: oklch(91.8% 0.180 116.2);
Tailwind
colors: {
  custom: {
    50: '#ecf68b',
    500: '#def252',
    950: '#000000',
  },
}
SCSS
$custom: #def252;
$custom-light: #ecf68b;
$custom-dark: #000000;
JSON
{
  "hex": "#def252",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 82
  },
  "hsl": {
    "h": 67.5,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.9178,
    "c": 0.17984,
    "h": 116.2
  },
  "luminance": 0.79643
}

Semantic roles & 50–950 ramp

primary
#DEF252
secondary
#402EBA
accent
#03E31F
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#17170C
muted
#85857F

Preview Lab

Preview with #DEF252

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

Preview Lab → · Contrast checker → · Palette generator →

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