#D8CC3F#D8CC3F

#D8CC3F is a very light, vivid yellow. Relative luminance 0.581; OKLCH L 83.1% C 0.155 H 104.4°. Best body text is #000000 at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#D8CC3F
RGBrgb(216, 204, 63)
HSLhsl(55, 66%, 55%)
HSVhsv(55, 71%, 85%)
CMYKcmyk(0%, 5.6%, 70.8%, 15.3%)
CIE-LABlab(80.82, -11.53, 67.82)
CIE-LCHlch(80.82, 68.80, 99.65°)
OKLaboklab(83.07% -0.0386 0.1504)
OKLCHoklch(83.07% 0.155 104.4)
XYZxyz(50.8111, 58.1455, 13.2484)
Luminance0.5814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC3F #3F4BD8
analogous
#D87F3F #D8CC3F #98D83F
triadic
#D8CC3F #3FD8CC #CC3FD8
tetradic
#D8CC3F #3FD87F #3F4BD8 #D83F98
square
#D8CC3F #3FD87F #3F4BD8 #D83F98
split-complementary
#D8CC3F #3F98D8 #7F3FD8
monochromatic
#827A1A #B5AA25 #D8CC3F #E2DA72 #EDE7A5

Accessibility & contrast

On white

1.66
#D8CC3F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.63
#D8CC3F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC3F
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC3F#FFFFFF#000000##000000
##D8CC3F1.001.6612.6312.63
#FFFFFF1.661.0021.0021.00
#00000012.6321.001.001.00
##00000012.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC527
Deuteranopia (green-blind)
#E2CC49
Tritanopia (blue-blind)
#E8BEB0
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc3f;
/* rgb */ color: rgb(216, 204, 63);
/* oklch */ color: oklch(83.1% 0.155 104.4);
Tailwind
colors: {
  custom: {
    50: '#e8db7d',
    500: '#d8cc3f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc3f;
$custom-light: #e8db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc3f",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 63
  },
  "hsl": {
    "h": 55.294,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.8307,
    "c": 0.15527,
    "h": 104.4
  },
  "luminance": 0.58144
}

Semantic roles & 50–950 ramp

primary
#D8CC3F
secondary
#323989
accent
#4CE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8CC3F

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

Preview Lab → · Contrast checker → · Palette generator →

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