#D9C541#D9C541

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

Color values

HEX#D9C541
RGBrgb(217, 197, 65)
HSLhsl(52, 67%, 55%)
HSVhsv(52, 70%, 85%)
CMYKcmyk(0%, 9.2%, 70%, 14.9%)
CIE-LABlab(79.08, -7.45, 65.40)
CIE-LCHlch(79.08, 65.82, 96.50°)
OKLaboklab(81.71% -0.0269 0.1456)
OKLCHoklch(81.71% 0.148 100.5)
XYZxyz(49.5379, 55.0681, 13.0199)
Luminance0.5507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D9C541 #4155D9
analogous
#D97941 #D9C541 #A1D941
triadic
#D9C541 #41D9C5 #C541D9
tetradic
#D9C541 #41D979 #4155D9 #D941A1
square
#D9C541 #41D979 #4155D9 #D941A1
split-complementary
#D9C541 #41A1D9 #7941D9
monochromatic
#85771B #B8A525 #D9C541 #E3D574 #EDE4A7

Accessibility & contrast

On white

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

On black

12.01
#D9C541 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D9C541
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D9C541#FFFFFF#000000##000000
##D9C5411.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2D
Deuteranopia (green-blind)
#DDC749
Tritanopia (blue-blind)
#EAB7AB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d9c541;
/* rgb */ color: rgb(217, 197, 65);
/* oklch */ color: oklch(81.7% 0.148 100.5);
Tailwind
colors: {
  custom: {
    50: '#e9d67d',
    500: '#d9c541',
    950: '#000000',
  },
}
SCSS
$custom: #d9c541;
$custom-light: #e9d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#d9c541",
  "rgb": {
    "r": 217,
    "g": 197,
    "b": 65
  },
  "hsl": {
    "h": 52.105,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.81713,
    "c": 0.14805,
    "h": 100.5
  },
  "luminance": 0.55066
}

Semantic roles & 50–950 ramp

primary
#D9C541
secondary
#333E8B
accent
#55EA3E
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#17140A
muted
#85837D

Preview Lab

Preview with #D9C541

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

Preview Lab → · Contrast checker → · Palette generator →

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