#D8C045#D8C045

#D8C045 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.6% C 0.141 H 98.0°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D8C045
RGBrgb(216, 192, 69)
HSLhsl(50, 65%, 56%)
HSVhsv(50, 68%, 85%)
CMYKcmyk(0%, 11.1%, 68.1%, 15.3%)
CIE-LABlab(77.72, -5.10, 62.43)
CIE-LCHlch(77.72, 62.64, 94.67°)
OKLaboklab(80.62% -0.0198 0.14)
OKLCHoklch(80.62% 0.141 98)
XYZxyz(48.2450, 52.7302, 13.2658)
Luminance0.5273 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C045 #455DD8
analogous
#D87645 #D8C045 #A6D845
triadic
#D8C045 #45D8C0 #C045D8
tetradic
#D8C045 #45D876 #455DD8 #D845A6
square
#D8C045 #45D876 #455DD8 #D845A6
split-complementary
#D8C045 #45A6D8 #7645D8
monochromatic
#86751C #B9A127 #D8C045 #E3D178 #EDE2AA

Accessibility & contrast

On white

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

On black

11.55
#D8C045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C045
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C045#FFFFFF#000000##000000
##D8C0451.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB34
Deuteranopia (green-blind)
#D9C44C
Tritanopia (blue-blind)
#E9B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c045;
/* rgb */ color: rgb(216, 192, 69);
/* oklch */ color: oklch(80.6% 0.141 98.0);
Tailwind
colors: {
  custom: {
    50: '#e8d27f',
    500: '#d8c045',
    950: '#000000',
  },
}
SCSS
$custom: #d8c045;
$custom-light: #e8d27f;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c045",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 69
  },
  "hsl": {
    "h": 50.204,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.80618,
    "c": 0.14141,
    "h": 98
  },
  "luminance": 0.52728
}

Semantic roles & 50–950 ramp

primary
#D8C045
secondary
#34438D
accent
#5BE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D8C045

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

Preview Lab → · Contrast checker → · Palette generator →

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