#D4C73B#D4C73B

#D4C73B is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.154 H 103.9°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#D4C73B
RGBrgb(212, 199, 59)
HSLhsl(55, 64%, 53%)
HSVhsv(55, 72%, 83%)
CMYKcmyk(0%, 6.1%, 72.2%, 16.9%)
CIE-LABlab(79.13, -10.88, 67.51)
CIE-LCHlch(79.13, 68.38, 99.15°)
OKLaboklab(81.64% -0.037 0.1492)
OKLCHoklch(81.64% 0.154 103.9)
XYZxyz(48.3663, 55.1616, 12.2364)
Luminance0.5516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C73B #3B48D4
analogous
#D47A3B #D4C73B #94D43B
triadic
#D4C73B #3BD4C7 #C73BD4
tetradic
#D4C73B #3BD47A #3B48D4 #D43B94
square
#D4C73B #3BD47A #3B48D4 #D43B94
split-complementary
#D4C73B #3B94D4 #7A3BD4
monochromatic
#7A721B #ACA126 #D4C73B #DFD56D #EAE49F

Accessibility & contrast

On white

1.75
#D4C73B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.03
#D4C73B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C73B
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C73B#FFFFFF#000000##000000
##D4C73B1.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C022
Deuteranopia (green-blind)
#DDC745
Tritanopia (blue-blind)
#E4B9AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c73b;
/* rgb */ color: rgb(212, 199, 59);
/* oklch */ color: oklch(81.6% 0.154 103.9);
Tailwind
colors: {
  custom: {
    50: '#e5d77a',
    500: '#d4c73b',
    950: '#000000',
  },
}
SCSS
$custom: #d4c73b;
$custom-light: #e5d77a;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c73b",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 59
  },
  "hsl": {
    "h": 54.902,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.8164,
    "c": 0.15366,
    "h": 103.9
  },
  "luminance": 0.5516
}

Semantic roles & 50–950 ramp

primary
#D4C73B
secondary
#313882
accent
#4FE741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C73B

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

Preview Lab → · Contrast checker → · Palette generator →

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