#D4C123#D4C123

#D4C123 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.3% C 0.160 H 101.8°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#D4C123
RGBrgb(212, 193, 35)
HSLhsl(54, 72%, 48%)
HSVhsv(54, 83%, 83%)
CMYKcmyk(0%, 9%, 83.5%, 16.9%)
CIE-LABlab(77.44, -8.69, 73.25)
CIE-LCHlch(77.44, 73.76, 96.76°)
OKLaboklab(80.25% -0.0328 0.157)
OKLCHoklch(80.25% 0.16 101.8)
XYZxyz(46.5270, 52.2605, 9.2263)
Luminance0.5226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C123 #2336D4
analogous
#D46823 #D4C123 #8ED423
triadic
#D4C123 #23D4C1 #C123D4
tetradic
#D4C123 #23D468 #2336D4 #D4238E
square
#D4C123 #23D468 #2336D4 #D4238E
split-complementary
#D4C123 #238ED4 #6823D4
monochromatic
#6B6112 #9F911A #D4C123 #E2D352 #EBE086

Accessibility & contrast

On white

1.83
#D4C123 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#D4C123 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C123
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C123#FFFFFF#000000##000000
##D4C1231.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BB00
Deuteranopia (green-blind)
#D9C332
Tritanopia (blue-blind)
#E5B2A5
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c123;
/* rgb */ color: rgb(212, 193, 35);
/* oklch */ color: oklch(80.3% 0.160 101.8);
Tailwind
colors: {
  custom: {
    50: '#e6d36f',
    500: '#d4c123',
    950: '#000000',
  },
}
SCSS
$custom: #d4c123;
$custom-light: #e6d36f;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c123",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 35
  },
  "hsl": {
    "h": 53.559,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.80254,
    "c": 0.16038,
    "h": 101.8
  },
  "luminance": 0.52258
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C123

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

Preview Lab → · Contrast checker → · Palette generator →

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