#DEF257#DEF257

#DEF257 is a very light, vivid yellow. Relative luminance 0.797; OKLCH L 91.8% C 0.176 H 116.3°. Best body text is #000000 at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#DEF257
RGBrgb(222, 242, 87)
HSLhsl(68, 86%, 65%)
HSVhsv(68, 64%, 95%)
CMYKcmyk(8.3%, 0%, 64%, 5.1%)
CIE-LABlab(91.56, -26.30, 69.80)
CIE-LCHlch(91.56, 74.59, 110.64°)
OKLaboklab(91.82% -0.078 0.1582)
OKLCHoklch(91.82% 0.176 116.3)
XYZxyz(63.5980, 79.7228, 21.0527)
Luminance0.7972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF257 #6B57F2
analogous
#F2B957 #DEF257 #91F257
triadic
#DEF257 #57DEF2 #F257DE
tetradic
#DEF257 #57F2B9 #6B57F2 #F25791
square
#DEF257 #57F2B9 #6B57F2 #F25791
split-complementary
#DEF257 #5791F2 #B957F2
monochromatic
#A9C00F #D3EE1E #DEF257 #E9F690 #F4FBC9

Accessibility & contrast

On white

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

On black

16.94
#DEF257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF257
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF257#FFFFFF#000000##000000
##DEF2571.001.2416.9416.94
#FFFFFF1.241.0021.0021.00
#00000016.9421.001.001.00
##00000016.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #def257;
/* rgb */ color: rgb(222, 242, 87);
/* oklch */ color: oklch(91.8% 0.176 116.3);
Tailwind
colors: {
  custom: {
    50: '#ebf68e',
    500: '#def257',
    950: '#000000',
  },
}
SCSS
$custom: #def257;
$custom-light: #ebf68e;
$custom-dark: #000000;
JSON
{
  "hex": "#def257",
  "rgb": {
    "r": 222,
    "g": 242,
    "b": 87
  },
  "hsl": {
    "h": 67.742,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.9182,
    "c": 0.17637,
    "h": 116.3
  },
  "luminance": 0.79722
}

Semantic roles & 50–950 ramp

primary
#DEF257
secondary
#4230BE
accent
#03E220
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#17170D
muted
#85857F

Preview Lab

Preview with #DEF257

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

Preview Lab → · Contrast checker → · Palette generator →

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