#D1C545#D1C545

#D1C545 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.0% C 0.146 H 103.9°. Best body text is #000000 at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#D1C545
RGBrgb(209, 197, 69)
HSLhsl(55, 60%, 55%)
HSVhsv(55, 67%, 82%)
CMYKcmyk(0%, 5.7%, 67%, 18%)
CIE-LABlab(78.41, -10.63, 62.95)
CIE-LCHlch(78.41, 63.84, 99.58°)
OKLaboklab(81.03% -0.0351 0.1413)
OKLCHoklch(81.03% 0.146 103.9)
XYZxyz(47.3368, 53.9193, 13.5431)
Luminance0.5392 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C545 #4551D1
analogous
#D17F45 #D1C545 #97D145
triadic
#D1C545 #45D1C5 #C545D1
tetradic
#D1C545 #45D17F #4551D1 #D14597
square
#D1C545 #45D17F #4551D1 #D14597
split-complementary
#D1C545 #4597D1 #7F45D1
monochromatic
#7D751F #AEA32B #D1C545 #DDD476 #E9E4A7

Accessibility & contrast

On white

1.78
#D1C545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.78
#D1C545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C545
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C545#FFFFFF#000000##000000
##D1C5451.001.7811.7811.78
#FFFFFF1.781.0021.0021.00
#00000011.7821.001.001.00
##00000011.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE33
Deuteranopia (green-blind)
#DAC54D
Tritanopia (blue-blind)
#E0B8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d1c545;
/* rgb */ color: rgb(209, 197, 69);
/* oklch */ color: oklch(81.0% 0.146 103.9);
Tailwind
colors: {
  custom: {
    50: '#e2d680',
    500: '#d1c545',
    950: '#000000',
  },
}
SCSS
$custom: #d1c545;
$custom-light: #e2d680;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c545",
  "rgb": {
    "r": 209,
    "g": 197,
    "b": 69
  },
  "hsl": {
    "h": 54.857,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.81027,
    "c": 0.14563,
    "h": 103.9
  },
  "luminance": 0.53917
}

Semantic roles & 50–950 ramp

primary
#D1C545
secondary
#363D84
accent
#52E344
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C545

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

Preview Lab → · Contrast checker → · Palette generator →

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