#D4C923#D4C923

#D4C923 is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.9% C 0.167 H 105.4°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D4C923
RGBrgb(212, 201, 35)
HSLhsl(56, 72%, 48%)
HSVhsv(56, 83%, 83%)
CMYKcmyk(0%, 5.2%, 83.5%, 16.9%)
CIE-LABlab(79.55, -12.75, 75.02)
CIE-LCHlch(79.55, 76.10, 99.64°)
OKLaboklab(81.94% -0.0442 0.1609)
OKLCHoklch(81.94% 0.167 105.4)
XYZxyz(48.3436, 55.8937, 9.8319)
Luminance0.5589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C923 #232ED4
analogous
#D47023 #D4C923 #86D423
triadic
#D4C923 #23D4C9 #C923D4
tetradic
#D4C923 #23D470 #232ED4 #D42386
square
#D4C923 #23D470 #232ED4 #D42386
split-complementary
#D4C923 #2386D4 #7023D4
monochromatic
#6B6512 #9F971A #D4C923 #E2D952 #EBE586

Accessibility & contrast

On white

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

On black

12.18
#D4C923 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C923
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C923#FFFFFF#000000##000000
##D4C9231.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC100
Deuteranopia (green-blind)
#DFC833
Tritanopia (blue-blind)
#E4BBAC
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c923;
/* rgb */ color: rgb(212, 201, 35);
/* oklch */ color: oklch(81.9% 0.167 105.4);
Tailwind
colors: {
  custom: {
    50: '#e6d970',
    500: '#d4c923',
    950: '#000000',
  },
}
SCSS
$custom: #d4c923;
$custom-light: #e6d970;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c923",
  "rgb": {
    "r": 212,
    "g": 201,
    "b": 35
  },
  "hsl": {
    "h": 56.271,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.81938,
    "c": 0.16681,
    "h": 105.4
  },
  "luminance": 0.55892
}

Semantic roles & 50–950 ramp

primary
#D4C923
secondary
#272C75
accent
#45EE39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171409
muted
#85837D

Preview Lab

Preview with #D4C923

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

Preview Lab → · Contrast checker → · Palette generator →

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