#D8C45F#D8C45F

#D8C45F is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.7% C 0.124 H 98.3°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#D8C45F
RGBrgb(216, 196, 95)
HSLhsl(50, 61%, 61%)
HSVhsv(50, 56%, 85%)
CMYKcmyk(0%, 9.3%, 56%, 15.3%)
CIE-LABlab(78.99, -5.46, 52.44)
CIE-LCHlch(78.99, 52.72, 95.95°)
OKLaboklab(81.7% -0.0178 0.1224)
OKLCHoklch(81.7% 0.124 98.3)
XYZxyz(50.1262, 54.9071, 18.7820)
Luminance0.5491 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C45F #5F73D8
analogous
#D8875F #D8C45F #AFD85F
triadic
#D8C45F #5FD8C4 #C45FD8
tetradic
#D8C45F #5FD887 #5F73D8 #D85FAF
square
#D8C45F #5FD887 #5F73D8 #D85FAF
split-complementary
#D8C45F #5FAFD8 #875FD8
monochromatic
#988525 #C9B031 #D8C45F #E4D690 #F0E8C1

Accessibility & contrast

On white

1.75
#D8C45F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#D8C45F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C45F
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C45F#FFFFFF#000000##000000
##D8C45F1.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF55
Deuteranopia (green-blind)
#DAC764
Tritanopia (blue-blind)
#E7B8AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c45f;
/* rgb */ color: rgb(216, 196, 95);
/* oklch */ color: oklch(81.7% 0.124 98.3);
Tailwind
colors: {
  custom: {
    50: '#e7d58f',
    500: '#d8c45f',
    950: '#000000',
  },
}
SCSS
$custom: #d8c45f;
$custom-light: #e7d58f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c45f",
  "rgb": {
    "r": 216,
    "g": 196,
    "b": 95
  },
  "hsl": {
    "h": 50.083,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.81701,
    "c": 0.12365,
    "h": 98.3
  },
  "luminance": 0.54905
}

Semantic roles & 50–950 ramp

primary
#D8C45F
secondary
#3F4E9C
accent
#39C81D
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140D
muted
#85837F

Preview Lab

Preview with #D8C45F

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

Preview Lab → · Contrast checker → · Palette generator →

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