#D2C545#D2C545

#D2C545 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.1% C 0.146 H 103.5°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#D2C545
RGBrgb(210, 197, 69)
HSLhsl(54, 61%, 55%)
HSVhsv(54, 67%, 82%)
CMYKcmyk(0%, 6.2%, 67.1%, 17.6%)
CIE-LABlab(78.50, -10.21, 63.06)
CIE-LCHlch(78.50, 63.88, 99.19°)
OKLaboklab(81.12% -0.0339 0.1416)
OKLCHoklch(81.12% 0.146 103.5)
XYZxyz(47.6207, 54.0657, 13.5564)
Luminance0.5406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C545 #4552D2
analogous
#D27F45 #D2C545 #99D245
triadic
#D2C545 #45D2C5 #C545D2
tetradic
#D2C545 #45D27F #4552D2 #D24599
square
#D2C545 #45D27F #4552D2 #D24599
split-complementary
#D2C545 #4599D2 #7F45D2
monochromatic
#7E751F #AFA32A #D2C545 #DED476 #EAE4A8

Accessibility & contrast

On white

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

On black

11.81
#D2C545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C545
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C545#FFFFFF#000000##000000
##D2C5451.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c545;
/* rgb */ color: rgb(210, 197, 69);
/* oklch */ color: oklch(81.1% 0.146 103.5);
Tailwind
colors: {
  custom: {
    50: '#e3d680',
    500: '#d2c545',
    950: '#000000',
  },
}
SCSS
$custom: #d2c545;
$custom-light: #e3d680;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c545",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 69
  },
  "hsl": {
    "h": 54.468,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.81116,
    "c": 0.14556,
    "h": 103.5
  },
  "luminance": 0.54064
}

Semantic roles & 50–950 ramp

primary
#D2C545
secondary
#363D86
accent
#52E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C545

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

Preview Lab → · Contrast checker → · Palette generator →

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