#D8CD3F#D8CD3F

#D8CD3F is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 83.3% C 0.156 H 104.9°. Best body text is #000000 at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#D8CD3F
RGBrgb(216, 205, 63)
HSLhsl(56, 66%, 55%)
HSVhsv(56, 71%, 85%)
CMYKcmyk(0%, 5.1%, 70.8%, 15.3%)
CIE-LABlab(81.08, -12.03, 68.08)
CIE-LCHlch(81.08, 69.14, 100.02°)
OKLaboklab(83.28% -0.04 0.1509)
OKLCHoklch(83.28% 0.156 104.9)
XYZxyz(51.0495, 58.6224, 13.3279)
Luminance0.5862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CD3F #3F4AD8
analogous
#D8803F #D8CD3F #97D83F
triadic
#D8CD3F #3FD8CD #CD3FD8
tetradic
#D8CD3F #3FD880 #3F4AD8 #D83F97
square
#D8CD3F #3FD880 #3F4AD8 #D83F97
split-complementary
#D8CD3F #3F97D8 #803FD8
monochromatic
#827B1A #B5AB25 #D8CD3F #E2DA72 #EDE7A5

Accessibility & contrast

On white

1.65
#D8CD3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.72
#D8CD3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CD3F
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CD3F#FFFFFF#000000##000000
##D8CD3F1.001.6512.7212.72
#FFFFFF1.651.0021.0021.00
#00000012.7221.001.001.00
##00000012.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC627
Deuteranopia (green-blind)
#E3CC49
Tritanopia (blue-blind)
#E8BFB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cd3f;
/* rgb */ color: rgb(216, 205, 63);
/* oklch */ color: oklch(83.3% 0.156 104.9);
Tailwind
colors: {
  custom: {
    50: '#e8db7d',
    500: '#d8cd3f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cd3f;
$custom-light: #e8db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cd3f",
  "rgb": {
    "r": 216,
    "g": 205,
    "b": 63
  },
  "hsl": {
    "h": 55.686,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.8328,
    "c": 0.15615,
    "h": 104.9
  },
  "luminance": 0.5862
}

Semantic roles & 50–950 ramp

primary
#D8CD3F
secondary
#323889
accent
#4BE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17150A
muted
#85847D

Preview Lab

Preview with #D8CD3F

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

Preview Lab → · Contrast checker → · Palette generator →

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