#D4C945#D4C945

#D4C945 is a very light, vivid yellow. Relative luminance 0.562; OKLCH L 82.1% C 0.149 H 104.5°. Best body text is #000000 at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#D4C945
RGBrgb(212, 201, 69)
HSLhsl(55, 62%, 55%)
HSVhsv(55, 67%, 83%)
CMYKcmyk(0%, 5.2%, 67.5%, 16.9%)
CIE-LABlab(79.73, -11.39, 64.37)
CIE-LCHlch(79.73, 65.37, 100.04°)
OKLaboklab(82.13% -0.0374 0.1443)
OKLCHoklch(82.13% 0.149 104.5)
XYZxyz(49.1141, 56.2019, 13.8900)
Luminance0.5620 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C945 #4550D4
analogous
#D48245 #D4C945 #97D445
triadic
#D4C945 #45D4C9 #C945D4
tetradic
#D4C945 #45D482 #4550D4 #D44597
square
#D4C945 #45D482 #4550D4 #D44597
split-complementary
#D4C945 #4597D4 #8245D4
monochromatic
#81791E #B3A829 #D4C945 #DFD777 #EBE6A8

Accessibility & contrast

On white

1.72
#D4C945 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.24
#D4C945 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C945
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C945#FFFFFF#000000##000000
##D4C9451.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC232
Deuteranopia (green-blind)
#DEC84D
Tritanopia (blue-blind)
#E3BCAE
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d4c945;
/* rgb */ color: rgb(212, 201, 69);
/* oklch */ color: oklch(82.1% 0.149 104.5);
Tailwind
colors: {
  custom: {
    50: '#e5d980',
    500: '#d4c945',
    950: '#000000',
  },
}
SCSS
$custom: #d4c945;
$custom-light: #e5d980;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c945",
  "rgb": {
    "r": 212,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 55.385,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.82134,
    "c": 0.14902,
    "h": 104.5
  },
  "luminance": 0.562
}

Semantic roles & 50–950 ramp

primary
#D4C945
secondary
#353C88
accent
#4FE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C945

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

Preview Lab → · Contrast checker → · Palette generator →

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