#D4C545#D4C545

#D4C545 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.3% C 0.145 H 102.6°. Best body text is #000000 at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#D4C545
RGBrgb(212, 197, 69)
HSLhsl(54, 62%, 55%)
HSVhsv(54, 67%, 83%)
CMYKcmyk(0%, 7.1%, 67.5%, 16.9%)
CIE-LABlab(78.67, -9.36, 63.29)
CIE-LCHlch(78.67, 63.98, 98.41°)
OKLaboklab(81.29% -0.0316 0.142)
OKLCHoklch(81.29% 0.145 102.6)
XYZxyz(48.1938, 54.3612, 13.5832)
Luminance0.5436 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C545 #4554D4
analogous
#D47D45 #D4C545 #9CD445
triadic
#D4C545 #45D4C5 #C545D4
tetradic
#D4C545 #45D47D #4554D4 #D4459C
square
#D4C545 #45D47D #4554D4 #D4459C
split-complementary
#D4C545 #459CD4 #7D45D4
monochromatic
#81761E #B3A429 #D4C545 #DFD477 #EBE4A8

Accessibility & contrast

On white

1.77
#D4C545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.87
#D4C545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C545
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C545#FFFFFF#000000##000000
##D4C5451.001.7711.8711.87
#FFFFFF1.771.0021.0021.00
#00000011.8721.001.001.00
##00000011.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF33
Deuteranopia (green-blind)
#DBC64D
Tritanopia (blue-blind)
#E4B8AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d4c545;
/* rgb */ color: rgb(212, 197, 69);
/* oklch */ color: oklch(81.3% 0.145 102.6);
Tailwind
colors: {
  custom: {
    50: '#e5d680',
    500: '#d4c545',
    950: '#000000',
  },
}
SCSS
$custom: #d4c545;
$custom-light: #e5d680;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c545",
  "rgb": {
    "r": 212,
    "g": 197,
    "b": 69
  },
  "hsl": {
    "h": 53.706,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81293,
    "c": 0.14546,
    "h": 102.6
  },
  "luminance": 0.54359
}

Semantic roles & 50–950 ramp

primary
#D4C545
secondary
#353E88
accent
#53E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C545

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

Preview Lab → · Contrast checker → · Palette generator →

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