#DAF040#DAF040

#DAF040 is a very light, vivid yellow. Relative luminance 0.776; OKLCH L 90.9% C 0.190 H 116.6°. Best body text is #000000 at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#DAF040
RGBrgb(218, 240, 64)
HSLhsl(68, 85%, 60%)
HSVhsv(68, 73%, 94%)
CMYKcmyk(9.2%, 0%, 73.3%, 5.9%)
CIE-LABlab(90.60, -28.17, 76.91)
CIE-LCHlch(90.60, 81.91, 110.12°)
OKLaboklab(90.93% -0.0851 0.1697)
OKLCHoklch(90.93% 0.19 116.6)
XYZxyz(61.0005, 77.5966, 16.6137)
Luminance0.7760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DAF040 #5640F0
analogous
#F0AE40 #DAF040 #82F040
triadic
#DAF040 #40DAF0 #F040DA
tetradic
#DAF040 #40F0AE #5640F0 #F04082
square
#DAF040 #40F0AE #5640F0 #F04082
split-complementary
#DAF040 #4082F0 #AE40F0
monochromatic
#95A80D #C7E112 #DAF040 #E5F479 #F0F9B1

Accessibility & contrast

On white

1.27
#DAF040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.52
#DAF040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DAF040
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DAF040#FFFFFF#000000##000000
##DAF0401.001.2716.5216.52
#FFFFFF1.271.0021.0021.00
#00000016.5221.001.001.00
##00000016.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE318
Deuteranopia (green-blind)
#FFE54F
Tritanopia (blue-blind)
#E8E2CF
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #daf040;
/* rgb */ color: rgb(218, 240, 64);
/* oklch */ color: oklch(90.9% 0.190 116.6);
Tailwind
colors: {
  custom: {
    50: '#e9f481',
    500: '#daf040',
    950: '#000000',
  },
}
SCSS
$custom: #daf040;
$custom-light: #e9f481;
$custom-dark: #000000;
JSON
{
  "hex": "#daf040",
  "rgb": {
    "r": 218,
    "g": 240,
    "b": 64
  },
  "hsl": {
    "h": 67.5,
    "s": 85.437,
    "l": 59.608
  },
  "oklch": {
    "l": 0.90928,
    "c": 0.18984,
    "h": 116.6
  },
  "luminance": 0.77596
}

Semantic roles & 50–950 ramp

primary
#DAF040
secondary
#3B2BAA
accent
#2CFC46
background
#FFFFFB
surface
#FEFEF2
border
#D6D6CC
text
#17170B
muted
#85857E

Preview Lab

Preview with #DAF040

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

Preview Lab → · Contrast checker → · Palette generator →

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