#D3C040#D3C040

#D3C040 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.145 H 100.7°. Best body text is #000000 at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#D3C040
RGBrgb(211, 192, 64)
HSLhsl(52, 63%, 54%)
HSVhsv(52, 70%, 83%)
CMYKcmyk(0%, 9%, 69.7%, 17.3%)
CIE-LABlab(77.23, -7.49, 63.77)
CIE-LCHlch(77.23, 64.20, 96.70°)
OKLaboklab(80.12% -0.0268 0.1422)
OKLCHoklch(80.12% 0.145 100.7)
XYZxyz(46.6411, 51.9204, 12.4144)
Luminance0.5192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3C040 #4053D3
analogous
#D37740 #D3C040 #9DD340
triadic
#D3C040 #40D3C0 #C040D3
tetradic
#D3C040 #40D377 #4053D3 #D3409D
square
#D3C040 #40D377 #4053D3 #D3409D
split-complementary
#D3C040 #409DD3 #7740D3
monochromatic
#7C701D #AE9C28 #D3C040 #DED072 #EAE1A3

Accessibility & contrast

On white

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

On black

11.38
#D3C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3C040
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3C040#FFFFFF#000000##000000
##D3C0401.001.8411.3811.38
#FFFFFF1.841.0021.0021.00
#00000011.3821.001.001.00
##00000011.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2D
Deuteranopia (green-blind)
#D7C248
Tritanopia (blue-blind)
#E3B2A6
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d3c040;
/* rgb */ color: rgb(211, 192, 64);
/* oklch */ color: oklch(80.1% 0.145 100.7);
Tailwind
colors: {
  custom: {
    50: '#e4d27c',
    500: '#d3c040',
    950: '#000000',
  },
}
SCSS
$custom: #d3c040;
$custom-light: #e4d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#d3c040",
  "rgb": {
    "r": 211,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 52.245,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80119,
    "c": 0.14467,
    "h": 100.7
  },
  "luminance": 0.51918
}

Semantic roles & 50–950 ramp

primary
#D3C040
secondary
#333E84
accent
#57E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3C040

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

Preview Lab → · Contrast checker → · Palette generator →

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