#D8DC4F#D8DC4F

#D8DC4F is a very light, vivid yellow. Relative luminance 0.663; OKLCH L 86.6% C 0.160 H 110.9°. Best body text is #000000 at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#D8DC4F
RGBrgb(216, 220, 79)
HSLhsl(62, 67%, 59%)
HSVhsv(62, 64%, 86%)
CMYKcmyk(1.8%, 0%, 64.1%, 13.7%)
CIE-LABlab(85.18, -18.62, 66.14)
CIE-LCHlch(85.18, 68.71, 105.73°)
OKLaboklab(86.58% -0.057 0.1494)
OKLCHoklch(86.58% 0.16 110.9)
XYZxyz(55.3251, 66.3512, 17.2883)
Luminance0.6635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8DC4F #534FDC
analogous
#DC994F #D8DC4F #91DC4F
triadic
#D8DC4F #4FD8DC #DC4FD8
tetradic
#D8DC4F #4FDC99 #534FDC #DC4F91
square
#D8DC4F #4FDC99 #534FDC #DC4F91
split-complementary
#D8DC4F #4F91DC #994FDC
monochromatic
#90931D #C2C627 #D8DC4F #E3E682 #EFF0B5

Accessibility & contrast

On white

1.47
#D8DC4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.27
#D8DC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8DC4F
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8DC4F#FFFFFF#000000##000000
##D8DC4F1.001.4714.2714.27
#FFFFFF1.471.0021.0021.00
#00000014.2721.001.001.00
##00000014.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD33C
Deuteranopia (green-blind)
#EDD758
Tritanopia (blue-blind)
#E6CFBF
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #d8dc4f;
/* rgb */ color: rgb(216, 220, 79);
/* oklch */ color: oklch(86.6% 0.160 110.9);
Tailwind
colors: {
  custom: {
    50: '#e7e687',
    500: '#d8dc4f',
    950: '#000000',
  },
}
SCSS
$custom: #d8dc4f;
$custom-light: #e7e687;
$custom-dark: #000000;
JSON
{
  "hex": "#d8dc4f",
  "rgb": {
    "r": 216,
    "g": 220,
    "b": 79
  },
  "hsl": {
    "h": 61.702,
    "s": 66.825,
    "l": 58.627
  },
  "oklch": {
    "l": 0.86578,
    "c": 0.15993,
    "h": 110.9
  },
  "luminance": 0.6635
}

Semantic roles & 50–950 ramp

primary
#D8DC4F
secondary
#3A3798
accent
#3EEA43
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8DC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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