#D4C523#D4C523

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

Color values

HEX#D4C523
RGBrgb(212, 197, 35)
HSLhsl(55, 72%, 48%)
HSVhsv(55, 83%, 83%)
CMYKcmyk(0%, 7.1%, 83.5%, 16.9%)
CIE-LABlab(78.49, -10.72, 74.13)
CIE-LCHlch(78.49, 74.91, 98.23°)
OKLaboklab(81.09% -0.0385 0.1589)
OKLCHoklch(81.09% 0.164 103.6)
XYZxyz(47.4233, 54.0530, 9.5251)
Luminance0.5405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C523 #2332D4
analogous
#D46C23 #D4C523 #8AD423
triadic
#D4C523 #23D4C5 #C523D4
tetradic
#D4C523 #23D46C #2332D4 #D4238A
square
#D4C523 #23D46C #2332D4 #D4238A
split-complementary
#D4C523 #238AD4 #6C23D4
monochromatic
#6B6312 #9F941A #D4C523 #E2D652 #EBE386

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C523#FFFFFF#000000##000000
##D4C5231.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)
#D8BE00
Deuteranopia (green-blind)
#DCC532
Tritanopia (blue-blind)
#E5B6A9
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d4c523;
/* rgb */ color: rgb(212, 197, 35);
/* oklch */ color: oklch(81.1% 0.164 103.6);
Tailwind
colors: {
  custom: {
    50: '#e6d670',
    500: '#d4c523',
    950: '#000000',
  },
}
SCSS
$custom: #d4c523;
$custom-light: #e6d670;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c523",
  "rgb": {
    "r": 212,
    "g": 197,
    "b": 35
  },
  "hsl": {
    "h": 54.915,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.81094,
    "c": 0.16352,
    "h": 103.6
  },
  "luminance": 0.54051
}

Semantic roles & 50–950 ramp

primary
#D4C523
secondary
#272D75
accent
#49EE39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171408
muted
#85837D

Preview Lab

Preview with #D4C523

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

Preview Lab → · Contrast checker → · Palette generator →

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