#D4C14F#D4C14F

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

Color values

HEX#D4C14F
RGBrgb(212, 193, 79)
HSLhsl(51, 61%, 57%)
HSVhsv(51, 63%, 83%)
CMYKcmyk(0%, 9%, 62.7%, 16.9%)
CIE-LABlab(77.70, -6.72, 58.12)
CIE-LCHlch(77.70, 58.51, 96.59°)
OKLaboklab(80.55% -0.023 0.1326)
OKLCHoklch(80.55% 0.135 99.8)
XYZxyz(47.6346, 52.7035, 15.0593)
Luminance0.5270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C14F #4F62D4
analogous
#D47F4F #D4C14F #A4D44F
triadic
#D4C14F #4FD4C1 #C14FD4
tetradic
#D4C14F #4FD47F #4F62D4 #D44FA4
square
#D4C14F #4FD47F #4F62D4 #D44FA4
split-complementary
#D4C14F #4FA4D4 #7F4FD4
monochromatic
#877921 #B9A52D #D4C14F #E0D280 #ECE4B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C14F#FFFFFF#000000##000000
##D4C14F1.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)
#D2BC42
Deuteranopia (green-blind)
#D7C355
Tritanopia (blue-blind)
#E3B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d4c14f;
/* rgb */ color: rgb(212, 193, 79);
/* oklch */ color: oklch(80.5% 0.135 99.8);
Tailwind
colors: {
  custom: {
    50: '#e4d385',
    500: '#d4c14f',
    950: '#000000',
  },
}
SCSS
$custom: #d4c14f;
$custom-light: #e4d385;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c14f",
  "rgb": {
    "r": 212,
    "g": 193,
    "b": 79
  },
  "hsl": {
    "h": 51.429,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80547,
    "c": 0.13456,
    "h": 99.8
  },
  "luminance": 0.52701
}

Semantic roles & 50–950 ramp

primary
#D4C14F
secondary
#39458E
accent
#5BE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C14F

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

Preview Lab → · Contrast checker → · Palette generator →

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