#D3C04F#D3C04F

#D3C04F is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.134 H 99.8°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#D3C04F
RGBrgb(211, 192, 79)
HSLhsl(51, 60%, 57%)
HSVhsv(51, 63%, 83%)
CMYKcmyk(0%, 9%, 62.6%, 17.3%)
CIE-LABlab(77.35, -6.63, 57.72)
CIE-LCHlch(77.35, 58.10, 96.55°)
OKLaboklab(80.25% -0.0227 0.1318)
OKLCHoklch(80.25% 0.134 99.8)
XYZxyz(47.1268, 52.1147, 14.9724)
Luminance0.5211 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C04F #4F62D3
analogous
#D37E4F #D3C04F #A4D34F
triadic
#D3C04F #4FD3C0 #C04FD3
tetradic
#D3C04F #4FD37E #4F62D3 #D34FA4
square
#D3C04F #4FD37E #4F62D3 #D34FA4
split-complementary
#D3C04F #4FA4D3 #7E4FD3
monochromatic
#867822 #B7A32E #D3C04F #DFD280 #EBE3B1

Accessibility & contrast

On white

1.84
#D3C04F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#D3C04F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C04F
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C04F#FFFFFF#000000##000000
##D3C04F1.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB42
Deuteranopia (green-blind)
#D6C255
Tritanopia (blue-blind)
#E2B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d3c04f;
/* rgb */ color: rgb(211, 192, 79);
/* oklch */ color: oklch(80.2% 0.134 99.8);
Tailwind
colors: {
  custom: {
    50: '#e4d285',
    500: '#d3c04f',
    950: '#000000',
  },
}
SCSS
$custom: #d3c04f;
$custom-light: #e4d285;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c04f",
  "rgb": {
    "r": 211,
    "g": 192,
    "b": 79
  },
  "hsl": {
    "h": 51.364,
    "s": 60,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80248,
    "c": 0.13369,
    "h": 99.8
  },
  "luminance": 0.52113
}

Semantic roles & 50–950 ramp

primary
#D3C04F
secondary
#39458D
accent
#5BE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D3C04F

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

Preview Lab → · Contrast checker → · Palette generator →

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