#DAFA52#DAFA52

#DAFA52 is a very light, vivid yellow-green. Relative luminance 0.839; OKLCH L 93.2% C 0.190 H 119.6°. Best body text is #000000 at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#DAFA52
RGBrgb(218, 250, 82)
HSLhsl(71, 94%, 65%)
HSVhsv(71, 67%, 98%)
CMYKcmyk(12.8%, 0%, 67.2%, 2%)
CIE-LABlab(93.40, -31.89, 73.50)
CIE-LCHlch(93.40, 80.12, 113.46°)
OKLaboklab(93.22% -0.0939 0.1653)
OKLCHoklch(93.22% 0.19 119.6)
XYZxyz(64.6232, 83.8862, 20.7682)
Luminance0.8389 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DAFA52 #7252FA
analogous
#FAC652 #DAFA52 #86FA52
triadic
#DAFA52 #52DAFA #FA52DA
tetradic
#DAFA52 #52FAC6 #7252FA #FA5286
square
#DAFA52 #52FAC6 #7252FA #FA5286
split-complementary
#DAFA52 #5286FA #C652FA
monochromatic
#A6CC06 #CDF817 #DAFA52 #E7FC8D #F3FDC9

Accessibility & contrast

On white

1.18
#DAFA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.78
#DAFA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DAFA52
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DAFA52#FFFFFF#000000##000000
##DAFA521.001.1817.7817.78
#FFFFFF1.181.0021.0021.00
#00000017.7821.001.001.00
##00000017.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC38
Deuteranopia (green-blind)
#FFED5F
Tritanopia (blue-blind)
#E6EDD8
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #dafa52;
/* rgb */ color: rgb(218, 250, 82);
/* oklch */ color: oklch(93.2% 0.190 119.6);
Tailwind
colors: {
  custom: {
    50: '#e9fc8b',
    500: '#dafa52',
    950: '#000000',
  },
}
SCSS
$custom: #dafa52;
$custom-light: #e9fc8b;
$custom-dark: #000000;
JSON
{
  "hex": "#dafa52",
  "rgb": {
    "r": 218,
    "g": 250,
    "b": 82
  },
  "hsl": {
    "h": 71.429,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.93219,
    "c": 0.1901,
    "h": 119.6
  },
  "luminance": 0.83886
}

Semantic roles & 50–950 ramp

primary
#DAFA52
secondary
#4729C7
accent
#00E62C
background
#FFFFFC
surface
#FEFFF4
border
#D6D7CE
text
#17170D
muted
#85857F

Preview Lab

Preview with #DAFA52

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

Preview Lab → · Contrast checker → · Palette generator →

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