#D8C645#D8C645

#D8C645 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.9% C 0.146 H 101.3°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#D8C645
RGBrgb(216, 198, 69)
HSLhsl(53, 65%, 56%)
HSVhsv(53, 68%, 85%)
CMYKcmyk(0%, 8.3%, 68.1%, 15.3%)
CIE-LABlab(79.28, -8.18, 64.03)
CIE-LCHlch(79.28, 64.55, 97.28°)
OKLaboklab(81.86% -0.0285 0.1434)
OKLCHoklch(81.86% 0.146 101.3)
XYZxyz(49.5893, 55.4189, 13.7139)
Luminance0.5542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C645 #4557D8
analogous
#D87C45 #D8C645 #A0D845
triadic
#D8C645 #45D8C6 #C645D8
tetradic
#D8C645 #45D87C #4557D8 #D845A0
square
#D8C645 #45D87C #4557D8 #D845A0
split-complementary
#D8C645 #45A0D8 #7C45D8
monochromatic
#86791C #B9A727 #D8C645 #E3D678 #EDE5AA

Accessibility & contrast

On white

1.74
#D8C645 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#D8C645 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C645
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C645#FFFFFF#000000##000000
##D8C6451.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C033
Deuteranopia (green-blind)
#DDC84D
Tritanopia (blue-blind)
#E8B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d8c645;
/* rgb */ color: rgb(216, 198, 69);
/* oklch */ color: oklch(81.9% 0.146 101.3);
Tailwind
colors: {
  custom: {
    50: '#e8d680',
    500: '#d8c645',
    950: '#000000',
  },
}
SCSS
$custom: #d8c645;
$custom-light: #e8d680;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c645",
  "rgb": {
    "r": 216,
    "g": 198,
    "b": 69
  },
  "hsl": {
    "h": 52.653,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81861,
    "c": 0.14621,
    "h": 101.3
  },
  "luminance": 0.55417
}

Semantic roles & 50–950 ramp

primary
#D8C645
secondary
#343F8D
accent
#54E840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C645

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

Preview Lab → · Contrast checker → · Palette generator →

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