#D4C823#D4C823

#D4C823 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.166 H 104.9°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D4C823
RGBrgb(212, 200, 35)
HSLhsl(56, 72%, 48%)
HSVhsv(56, 83%, 83%)
CMYKcmyk(0%, 5.7%, 83.5%, 16.9%)
CIE-LABlab(79.29, -12.24, 74.80)
CIE-LCHlch(79.29, 75.79, 99.30°)
OKLaboklab(81.73% -0.0428 0.1604)
OKLCHoklch(81.73% 0.166 104.9)
XYZxyz(48.1113, 55.4289, 9.7544)
Luminance0.5543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C823 #232FD4
analogous
#D46F23 #D4C823 #87D423
triadic
#D4C823 #23D4C8 #C823D4
tetradic
#D4C823 #23D46F #232FD4 #D42387
square
#D4C823 #23D46F #232FD4 #D42387
split-complementary
#D4C823 #2387D4 #6F23D4
monochromatic
#6B6512 #9F961A #D4C823 #E2D952 #EBE486

Accessibility & contrast

On white

1.74
#D4C823 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D4C823 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C823
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C823#FFFFFF#000000##000000
##D4C8231.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC100
Deuteranopia (green-blind)
#DFC733
Tritanopia (blue-blind)
#E4BAAB
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c823;
/* rgb */ color: rgb(212, 200, 35);
/* oklch */ color: oklch(81.7% 0.166 104.9);
Tailwind
colors: {
  custom: {
    50: '#e6d870',
    500: '#d4c823',
    950: '#000000',
  },
}
SCSS
$custom: #d4c823;
$custom-light: #e6d870;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c823",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 35
  },
  "hsl": {
    "h": 55.932,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.81727,
    "c": 0.16598,
    "h": 104.9
  },
  "luminance": 0.55427
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C823

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

Preview Lab → · Contrast checker → · Palette generator →

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