#D8CC45#D8CC45

#D8CC45 is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 83.1% C 0.151 H 104.2°. Best body text is #000000 at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#D8CC45
RGBrgb(216, 204, 69)
HSLhsl(55, 65%, 56%)
HSVhsv(55, 68%, 85%)
CMYKcmyk(0%, 5.6%, 68.1%, 15.3%)
CIE-LABlab(80.86, -11.23, 65.62)
CIE-LCHlch(80.86, 66.58, 99.71°)
OKLaboklab(83.11% -0.0372 0.1468)
OKLCHoklch(83.11% 0.151 104.2)
XYZxyz(50.9880, 58.2163, 14.1801)
Luminance0.5821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CC45 #4551D8
analogous
#D88245 #D8CC45 #9AD845
triadic
#D8CC45 #45D8CC #CC45D8
tetradic
#D8CC45 #45D882 #4551D8 #D8459A
square
#D8CC45 #45D882 #4551D8 #D8459A
split-complementary
#D8CC45 #459AD8 #8245D8
monochromatic
#867E1C #B9AD27 #D8CC45 #E3DA78 #EDE8AA

Accessibility & contrast

On white

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

On black

12.64
#D8CC45 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CC45
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CC45#FFFFFF#000000##000000
##D8CC451.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC531
Deuteranopia (green-blind)
#E2CC4E
Tritanopia (blue-blind)
#E8BEB1
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d8cc45;
/* rgb */ color: rgb(216, 204, 69);
/* oklch */ color: oklch(83.1% 0.151 104.2);
Tailwind
colors: {
  custom: {
    50: '#e8db80',
    500: '#d8cc45',
    950: '#000000',
  },
}
SCSS
$custom: #d8cc45;
$custom-light: #e8db80;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cc45",
  "rgb": {
    "r": 216,
    "g": 204,
    "b": 69
  },
  "hsl": {
    "h": 55.102,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.83114,
    "c": 0.1514,
    "h": 104.2
  },
  "luminance": 0.58214
}

Semantic roles & 50–950 ramp

primary
#D8CC45
secondary
#343C8D
accent
#4DE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8CC45

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

Preview Lab → · Contrast checker → · Palette generator →

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