#D8C249#D8C249

#D8C249 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 81.1% C 0.140 H 98.9°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#D8C249
RGBrgb(216, 194, 73)
HSLhsl(51, 65%, 57%)
HSVhsv(51, 66%, 85%)
CMYKcmyk(0%, 10.2%, 66.2%, 15.3%)
CIE-LABlab(78.27, -5.91, 61.37)
CIE-LCHlch(78.27, 61.65, 95.50°)
OKLaboklab(81.07% -0.0216 0.1384)
OKLCHoklch(81.07% 0.14 98.9)
XYZxyz(48.8155, 53.6658, 14.0893)
Luminance0.5366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C249 #495FD8
analogous
#D87B49 #D8C249 #A7D849
triadic
#D8C249 #49D8C2 #C249D8
tetradic
#D8C249 #49D87B #495FD8 #D849A7
square
#D8C249 #49D87B #495FD8 #D849A7
split-complementary
#D8C249 #49A7D8 #7B49D8
monochromatic
#89791D #BCA528 #D8C249 #E3D37B #EEE4AE

Accessibility & contrast

On white

1.79
#D8C249 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.73
#D8C249 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C249
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C249#FFFFFF#000000##000000
##D8C2491.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD39
Deuteranopia (green-blind)
#DAC550
Tritanopia (blue-blind)
#E8B4A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d8c249;
/* rgb */ color: rgb(216, 194, 73);
/* oklch */ color: oklch(81.1% 0.140 98.9);
Tailwind
colors: {
  custom: {
    50: '#e7d482',
    500: '#d8c249',
    950: '#000000',
  },
}
SCSS
$custom: #d8c249;
$custom-light: #e7d482;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c249",
  "rgb": {
    "r": 216,
    "g": 194,
    "b": 73
  },
  "hsl": {
    "h": 50.769,
    "s": 64.706,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81065,
    "c": 0.14012,
    "h": 98.9
  },
  "luminance": 0.53664
}

Semantic roles & 50–950 ramp

primary
#D8C249
secondary
#36448F
accent
#5AE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C249

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

Preview Lab → · Contrast checker → · Palette generator →

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