#D4C845#D4C845

#D4C845 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.148 H 104.1°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#D4C845
RGBrgb(212, 200, 69)
HSLhsl(55, 62%, 55%)
HSVhsv(55, 67%, 83%)
CMYKcmyk(0%, 5.7%, 67.5%, 16.9%)
CIE-LABlab(79.46, -10.89, 64.10)
CIE-LCHlch(79.46, 65.02, 99.64°)
OKLaboklab(81.92% -0.036 0.1437)
OKLCHoklch(81.92% 0.148 104.1)
XYZxyz(48.8818, 55.7372, 13.8126)
Luminance0.5574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C845 #4551D4
analogous
#D48045 #D4C845 #98D445
triadic
#D4C845 #45D4C8 #C845D4
tetradic
#D4C845 #45D480 #4551D4 #D44598
square
#D4C845 #45D480 #4551D4 #D44598
split-complementary
#D4C845 #4598D4 #8045D4
monochromatic
#81791E #B3A729 #D4C845 #DFD777 #EBE5A8

Accessibility & contrast

On white

1.73
#D4C845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#D4C845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C845
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C845#FFFFFF#000000##000000
##D4C8451.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C132
Deuteranopia (green-blind)
#DDC84D
Tritanopia (blue-blind)
#E3BBAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c845;
/* rgb */ color: rgb(212, 200, 69);
/* oklch */ color: oklch(81.9% 0.148 104.1);
Tailwind
colors: {
  custom: {
    50: '#e5d880',
    500: '#d4c845',
    950: '#000000',
  },
}
SCSS
$custom: #d4c845;
$custom-light: #e5d880;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c845",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 69
  },
  "hsl": {
    "h": 54.965,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.81923,
    "c": 0.14811,
    "h": 104.1
  },
  "luminance": 0.55735
}

Semantic roles & 50–950 ramp

primary
#D4C845
secondary
#353C88
accent
#50E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C845

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

Preview Lab → · Contrast checker → · Palette generator →

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