#D4C351#D4C351

#D4C351 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 81.0% C 0.135 H 100.9°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#D4C351
RGBrgb(212, 195, 81)
HSLhsl(52, 60%, 57%)
HSVhsv(52, 62%, 83%)
CMYKcmyk(0%, 8%, 61.8%, 16.9%)
CIE-LABlab(78.24, -7.62, 57.84)
CIE-LCHlch(78.24, 58.34, 97.50°)
OKLaboklab(80.98% -0.0253 0.1323)
OKLCHoklch(80.98% 0.135 100.9)
XYZxyz(48.1536, 53.6233, 15.5969)
Luminance0.5362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C351 #5162D4
analogous
#D48251 #D4C351 #A3D451
triadic
#D4C351 #51D4C3 #C351D4
tetradic
#D4C351 #51D482 #5162D4 #D451A3
square
#D4C351 #51D482 #5162D4 #D451A3
split-complementary
#D4C351 #51A3D4 #8251D4
monochromatic
#897B22 #BAA82E #D4C351 #E0D482 #ECE5B3

Accessibility & contrast

On white

1.79
#D4C351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#D4C351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C351
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C351#FFFFFF#000000##000000
##D4C3511.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE44
Deuteranopia (green-blind)
#D9C557
Tritanopia (blue-blind)
#E3B6AB
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c351;
/* rgb */ color: rgb(212, 195, 81);
/* oklch */ color: oklch(81.0% 0.135 100.9);
Tailwind
colors: {
  custom: {
    50: '#e4d486',
    500: '#d4c351',
    950: '#000000',
  },
}
SCSS
$custom: #d4c351;
$custom-light: #e4d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c351",
  "rgb": {
    "r": 212,
    "g": 195,
    "b": 81
  },
  "hsl": {
    "h": 52.214,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80982,
    "c": 0.13467,
    "h": 100.9
  },
  "luminance": 0.53621
}

Semantic roles & 50–950 ramp

primary
#D4C351
secondary
#3A458F
accent
#59E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C351

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

Preview Lab → · Contrast checker → · Palette generator →

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