#D8C03B#D8C03B

#D8C03B is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.148 H 98.6°. Best body text is #000000 at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#D8C03B
RGBrgb(216, 192, 59)
HSLhsl(51, 67%, 54%)
HSVhsv(51, 73%, 85%)
CMYKcmyk(0%, 11.1%, 72.7%, 15.3%)
CIE-LABlab(77.65, -5.59, 66.20)
CIE-LCHlch(77.65, 66.43, 94.83°)
OKLaboklab(80.54% -0.0222 0.1462)
OKLCHoklch(80.54% 0.148 98.6)
XYZxyz(47.9603, 52.6163, 11.7666)
Luminance0.5261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C03B #3B53D8
analogous
#D8723B #D8C03B #A2D83B
triadic
#D8C03B #3BD8C0 #C03BD8
tetradic
#D8C03B #3BD872 #3B53D8 #D83BA2
square
#D8C03B #3BD872 #3B53D8 #D83BA2
split-complementary
#D8C03B #3BA2D8 #723BD8
monochromatic
#7F7019 #B29C23 #D8C03B #E2D06E #ECE1A1

Accessibility & contrast

On white

1.82
#D8C03B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.52
#D8C03B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C03B
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C03B#FFFFFF#000000##000000
##D8C03B1.001.8211.5211.52
#FFFFFF1.821.0021.0021.00
#00000011.5221.001.001.00
##00000011.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB24
Deuteranopia (green-blind)
#D9C443
Tritanopia (blue-blind)
#E9B2A6
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c03b;
/* rgb */ color: rgb(216, 192, 59);
/* oklch */ color: oklch(80.5% 0.148 98.6);
Tailwind
colors: {
  custom: {
    50: '#e8d27a',
    500: '#d8c03b',
    950: '#000000',
  },
}
SCSS
$custom: #d8c03b;
$custom-light: #e8d27a;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c03b",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 59
  },
  "hsl": {
    "h": 50.828,
    "s": 66.809,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80543,
    "c": 0.14791,
    "h": 98.6
  },
  "luminance": 0.52614
}

Semantic roles & 50–950 ramp

primary
#D8C03B
secondary
#313E86
accent
#58EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C03B

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

Preview Lab → · Contrast checker → · Palette generator →

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