#D4C423#D4C423

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

Color values

HEX#D4C423
RGBrgb(212, 196, 35)
HSLhsl(55, 72%, 48%)
HSVhsv(55, 83%, 83%)
CMYKcmyk(0%, 7.5%, 83.5%, 16.9%)
CIE-LABlab(78.23, -10.22, 73.91)
CIE-LCHlch(78.23, 74.62, 97.87°)
OKLaboklab(80.88% -0.0371 0.1584)
OKLCHoklch(80.88% 0.163 103.2)
XYZxyz(47.1970, 53.6004, 9.4496)
Luminance0.5360 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C423 #2333D4
analogous
#D46B23 #D4C423 #8BD423
triadic
#D4C423 #23D4C4 #C423D4
tetradic
#D4C423 #23D46B #2333D4 #D4238B
square
#D4C423 #23D46B #2333D4 #D4238B
split-complementary
#D4C423 #238BD4 #6B23D4
monochromatic
#6B6312 #9F931A #D4C423 #E2D552 #EBE286

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C423#FFFFFF#000000##000000
##D4C4231.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)
#D7BD00
Deuteranopia (green-blind)
#DCC532
Tritanopia (blue-blind)
#E5B5A8
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d4c423;
/* rgb */ color: rgb(212, 196, 35);
/* oklch */ color: oklch(80.9% 0.163 103.2);
Tailwind
colors: {
  custom: {
    50: '#e6d56f',
    500: '#d4c423',
    950: '#000000',
  },
}
SCSS
$custom: #d4c423;
$custom-light: #e6d56f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c423",
  "rgb": {
    "r": 212,
    "g": 196,
    "b": 35
  },
  "hsl": {
    "h": 54.576,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.80883,
    "c": 0.16273,
    "h": 103.2
  },
  "luminance": 0.53598
}

Semantic roles & 50–950 ramp

primary
#D4C423
secondary
#272E75
accent
#4AEE39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171408
muted
#85837D

Preview Lab

Preview with #D4C423

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

Preview Lab → · Contrast checker → · Palette generator →

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