#D9C548#D9C548

#D9C548 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.8% C 0.143 H 100.1°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#D9C548
RGBrgb(217, 197, 72)
HSLhsl(52, 66%, 57%)
HSVhsv(52, 67%, 85%)
CMYKcmyk(0%, 9.2%, 66.8%, 14.9%)
CIE-LABlab(79.13, -7.08, 62.70)
CIE-LCHlch(79.13, 63.10, 96.44°)
OKLaboklab(81.77% -0.0251 0.1411)
OKLCHoklch(81.77% 0.143 100.1)
XYZxyz(49.7534, 55.1543, 14.1548)
Luminance0.5515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C548 #485CD9
analogous
#D97D48 #D9C548 #A5D948
triadic
#D9C548 #48D9C5 #C548D9
tetradic
#D9C548 #48D97D #485CD9 #D948A5
square
#D9C548 #48D97D #485CD9 #D948A5
split-complementary
#D9C548 #48A5D9 #7D48D9
monochromatic
#8A7B1D #BDA827 #D9C548 #E4D57B #EEE5AD

Accessibility & contrast

On white

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

On black

12.03
#D9C548 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C548
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C548#FFFFFF#000000##000000
##D9C5481.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d9c548;
/* rgb */ color: rgb(217, 197, 72);
/* oklch */ color: oklch(81.8% 0.143 100.1);
Tailwind
colors: {
  custom: {
    50: '#e8d681',
    500: '#d9c548',
    950: '#000000',
  },
}
SCSS
$custom: #d9c548;
$custom-light: #e8d681;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c548",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 72
  },
  "hsl": {
    "h": 51.724,
    "s": 65.611,
    "l": 56.667
  },
  "oklch": {
    "l": 0.81768,
    "c": 0.14328,
    "h": 100.1
  },
  "luminance": 0.55152
}

Semantic roles & 50–950 ramp

primary
#D9C548
secondary
#354290
accent
#57E93F
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140B
muted
#85837E

Preview Lab

Preview with #D9C548

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

Preview Lab → · Contrast checker → · Palette generator →

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