#D4C223#D4C223

#D4C223 is a light, vivid yellow. Relative luminance 0.527; OKLCH L 80.5% C 0.161 H 102.3°. Best body text is #000000 at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#D4C223
RGBrgb(212, 194, 35)
HSLhsl(54, 72%, 48%)
HSVhsv(54, 83%, 83%)
CMYKcmyk(0%, 8.5%, 83.5%, 16.9%)
CIE-LABlab(77.70, -9.20, 73.47)
CIE-LCHlch(77.70, 74.05, 97.13°)
OKLaboklab(80.46% -0.0342 0.1575)
OKLCHoklch(80.46% 0.161 102.3)
XYZxyz(46.7489, 52.7041, 9.3003)
Luminance0.5270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C223 #2335D4
analogous
#D46923 #D4C223 #8DD423
triadic
#D4C223 #23D4C2 #C223D4
tetradic
#D4C223 #23D469 #2335D4 #D4238D
square
#D4C223 #23D469 #2335D4 #D4238D
split-complementary
#D4C223 #238DD4 #6923D4
monochromatic
#6B6212 #9F921A #D4C223 #E2D452 #EBE186

Accessibility & contrast

On white

1.82
#D4C223 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.54
#D4C223 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C223
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C223#FFFFFF#000000##000000
##D4C2231.001.8211.5411.54
#FFFFFF1.821.0021.0021.00
#00000011.5421.001.001.00
##00000011.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC00
Deuteranopia (green-blind)
#DAC332
Tritanopia (blue-blind)
#E5B3A6
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d4c223;
/* rgb */ color: rgb(212, 194, 35);
/* oklch */ color: oklch(80.5% 0.161 102.3);
Tailwind
colors: {
  custom: {
    50: '#e6d46f',
    500: '#d4c223',
    950: '#000000',
  },
}
SCSS
$custom: #d4c223;
$custom-light: #e6d46f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c223",
  "rgb": {
    "r": 212,
    "g": 194,
    "b": 35
  },
  "hsl": {
    "h": 53.898,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.80463,
    "c": 0.16115,
    "h": 102.3
  },
  "luminance": 0.52702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C223

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

Preview Lab → · Contrast checker → · Palette generator →

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