#D4C023#D4C023

#D4C023 is a light, vivid yellow. Relative luminance 0.518; OKLCH L 80.0% C 0.160 H 101.3°. Best body text is #000000 at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#D4C023
RGBrgb(212, 192, 35)
HSLhsl(53, 72%, 48%)
HSVhsv(53, 83%, 83%)
CMYKcmyk(0%, 9.4%, 83.5%, 16.9%)
CIE-LABlab(77.17, -8.17, 73.03)
CIE-LCHlch(77.17, 73.49, 96.39°)
OKLaboklab(80.05% -0.0314 0.1565)
OKLCHoklch(80.05% 0.16 101.3)
XYZxyz(46.3067, 51.8199, 9.1529)
Luminance0.5182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C023 #2337D4
analogous
#D46723 #D4C023 #8FD423
triadic
#D4C023 #23D4C0 #C023D4
tetradic
#D4C023 #23D467 #2337D4 #D4238F
square
#D4C023 #23D467 #2337D4 #D4238F
split-complementary
#D4C023 #238FD4 #6723D4
monochromatic
#6B6112 #9F901A #D4C023 #E2D252 #EBE086

Accessibility & contrast

On white

1.85
#D4C023 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.36
#D4C023 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C023
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C023#FFFFFF#000000##000000
##D4C0231.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA00
Deuteranopia (green-blind)
#D9C231
Tritanopia (blue-blind)
#E5B1A4
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c023;
/* rgb */ color: rgb(212, 192, 35);
/* oklch */ color: oklch(80.0% 0.160 101.3);
Tailwind
colors: {
  custom: {
    50: '#e6d26f',
    500: '#d4c023',
    950: '#000000',
  },
}
SCSS
$custom: #d4c023;
$custom-light: #e6d26f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c023",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 35
  },
  "hsl": {
    "h": 53.22,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.80045,
    "c": 0.15963,
    "h": 101.3
  },
  "luminance": 0.51818
}

Semantic roles & 50–950 ramp

primary
#D4C023
secondary
#272F75
accent
#4EEE39
background
#FFFEFB
surface
#FEFBF1
border
#D6D4CB
text
#171408
muted
#85837D

Preview Lab

Preview with #D4C023

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

Preview Lab → · Contrast checker → · Palette generator →

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