#D9C545#D9C545

#D9C545 is a light, vivid yellow. Relative luminance 0.551; OKLCH L 81.7% C 0.145 H 100.3°. Best body text is #000000 at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#D9C545
RGBrgb(217, 197, 69)
HSLhsl(52, 66%, 56%)
HSVhsv(52, 68%, 85%)
CMYKcmyk(0%, 9.2%, 68.2%, 14.9%)
CIE-LABlab(79.11, -7.24, 63.88)
CIE-LCHlch(79.11, 64.29, 96.47°)
OKLaboklab(81.74% -0.0259 0.1431)
OKLCHoklch(81.74% 0.145 100.3)
XYZxyz(49.6579, 55.1161, 13.6519)
Luminance0.5511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C545 #4559D9
analogous
#D97B45 #D9C545 #A3D945
triadic
#D9C545 #45D9C5 #C545D9
tetradic
#D9C545 #45D97B #4559D9 #D945A3
square
#D9C545 #45D97B #4559D9 #D945A3
split-complementary
#D9C545 #45A3D9 #7B45D9
monochromatic
#88791C #BBA726 #D9C545 #E3D578 #EEE5AB

Accessibility & contrast

On white

1.75
#D9C545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.02
#D9C545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C545
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C545#FFFFFF#000000##000000
##D9C5451.001.7512.0212.02
#FFFFFF1.751.0021.0021.00
#00000012.0221.001.001.00
##00000012.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C033
Deuteranopia (green-blind)
#DDC74D
Tritanopia (blue-blind)
#E9B7AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c545;
/* rgb */ color: rgb(217, 197, 69);
/* oklch */ color: oklch(81.7% 0.145 100.3);
Tailwind
colors: {
  custom: {
    50: '#e8d680',
    500: '#d9c545',
    950: '#000000',
  },
}
SCSS
$custom: #d9c545;
$custom-light: #e8d680;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c545",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 69
  },
  "hsl": {
    "h": 51.892,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81744,
    "c": 0.14538,
    "h": 100.3
  },
  "luminance": 0.55114
}

Semantic roles & 50–950 ramp

primary
#D9C545
secondary
#34408E
accent
#56E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C545

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

Preview Lab → · Contrast checker → · Palette generator →

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