#DEF45F#DEF45F

#DEF45F is a very light, vivid yellow. Relative luminance 0.811; OKLCH L 92.3% C 0.173 H 117.0°. Best body text is #000000 at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#DEF45F
RGBrgb(222, 244, 95)
HSLhsl(69, 87%, 66%)
HSVhsv(69, 61%, 96%)
CMYKcmyk(9%, 0%, 61.1%, 4.3%)
CIE-LABlab(92.16, -26.72, 67.25)
CIE-LCHlch(92.16, 72.36, 111.67°)
OKLaboklab(92.32% -0.0785 0.1538)
OKLCHoklch(92.32% 0.173 117)
XYZxyz(64.5417, 81.0579, 23.0699)
Luminance0.8106 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DEF45F #755FF4
analogous
#F4C05F #DEF45F #94F45F
triadic
#DEF45F #5FDEF4 #F45FDE
tetradic
#DEF45F #5FF4C0 #755FF4 #F45F94
square
#DEF45F #5FF4C0 #755FF4 #F45F94
split-complementary
#DEF45F #5F94F4 #C05FF4
monochromatic
#AFCB0E #D2F026 #DEF45F #EAF898 #F6FCD2

Accessibility & contrast

On white

1.22
#DEF45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.21
#DEF45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DEF45F
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DEF45F#FFFFFF#000000##000000
##DEF45F1.001.2217.2117.21
#FFFFFF1.221.0021.0021.00
#00000017.2121.001.001.00
##00000017.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE84D
Deuteranopia (green-blind)
#FFE969
Tritanopia (blue-blind)
#EBE7D5
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #def45f;
/* rgb */ color: rgb(222, 244, 95);
/* oklch */ color: oklch(92.3% 0.173 117.0);
Tailwind
colors: {
  custom: {
    50: '#ebf792',
    500: '#def45f',
    950: '#000000',
  },
}
SCSS
$custom: #def45f;
$custom-light: #ebf792;
$custom-dark: #000000;
JSON
{
  "hex": "#def45f",
  "rgb": {
    "r": 222,
    "g": 244,
    "b": 95
  },
  "hsl": {
    "h": 68.859,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.92319,
    "c": 0.17271,
    "h": 117
  },
  "luminance": 0.81057
}

Semantic roles & 50–950 ramp

primary
#DEF45F
secondary
#4630C7
accent
#02E423
background
#FFFFFC
surface
#FEFEF4
border
#D6D6CE
text
#17170D
muted
#85857F

Preview Lab

Preview with #DEF45F

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

Preview Lab → · Contrast checker → · Palette generator →

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