#D9C045#D9C045

#D9C045 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.7% C 0.141 H 97.6°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#D9C045
RGBrgb(217, 192, 69)
HSLhsl(50, 66%, 56%)
HSVhsv(50, 68%, 85%)
CMYKcmyk(0%, 11.5%, 68.2%, 14.9%)
CIE-LABlab(77.81, -4.67, 62.55)
CIE-LCHlch(77.81, 62.73, 94.27°)
OKLaboklab(80.71% -0.0186 0.1403)
OKLCHoklch(80.71% 0.141 97.6)
XYZxyz(48.5414, 52.8830, 13.2797)
Luminance0.5288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C045 #455ED9
analogous
#D97645 #D9C045 #A8D945
triadic
#D9C045 #45D9C0 #C045D9
tetradic
#D9C045 #45D976 #455ED9 #D945A8
square
#D9C045 #45D976 #455ED9 #D945A8
split-complementary
#D9C045 #45A8D9 #7645D9
monochromatic
#88761C #BBA226 #D9C045 #E3D178 #EEE2AB

Accessibility & contrast

On white

1.81
#D9C045 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#D9C045 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C045
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C045#FFFFFF#000000##000000
##D9C0451.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9c045;
/* rgb */ color: rgb(217, 192, 69);
/* oklch */ color: oklch(80.7% 0.141 97.6);
Tailwind
colors: {
  custom: {
    50: '#e8d27f',
    500: '#d9c045',
    950: '#000000',
  },
}
SCSS
$custom: #d9c045;
$custom-light: #e8d27f;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c045",
  "rgb": {
    "r": 217,
    "g": 192,
    "b": 69
  },
  "hsl": {
    "h": 49.865,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80711,
    "c": 0.14148,
    "h": 97.6
  },
  "luminance": 0.52881
}

Semantic roles & 50–950 ramp

primary
#D9C045
secondary
#34438E
accent
#5CE93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C045

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

Preview Lab → · Contrast checker → · Palette generator →

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