#D3CC40#D3CC40

#D3CC40 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.6% C 0.155 H 106.5°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#D3CC40
RGBrgb(211, 204, 64)
HSLhsl(57, 63%, 54%)
HSVhsv(57, 70%, 83%)
CMYKcmyk(0%, 3.3%, 69.7%, 17.3%)
CIE-LABlab(80.41, -13.59, 66.91)
CIE-LCHlch(80.41, 68.28, 101.48°)
OKLaboklab(82.64% -0.044 0.1488)
OKLCHoklch(82.64% 0.155 106.5)
XYZxyz(49.3842, 57.4065, 13.3287)
Luminance0.5740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3CC40 #4047D3
analogous
#D38340 #D3CC40 #91D340
triadic
#D3CC40 #40D3CC #CC40D3
tetradic
#D3CC40 #40D383 #4047D3 #D34091
square
#D3CC40 #40D383 #4047D3 #D34091
split-complementary
#D3CC40 #4091D3 #8340D3
monochromatic
#7C771D #AEA728 #D3CC40 #DED972 #EAE7A3

Accessibility & contrast

On white

1.68
#D3CC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#D3CC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3CC40
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3CC40#FFFFFF#000000##000000
##D3CC401.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC429
Deuteranopia (green-blind)
#E0CA4A
Tritanopia (blue-blind)
#E2BFB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d3cc40;
/* rgb */ color: rgb(211, 204, 64);
/* oklch */ color: oklch(82.6% 0.155 106.5);
Tailwind
colors: {
  custom: {
    50: '#e4db7d',
    500: '#d3cc40',
    950: '#000000',
  },
}
SCSS
$custom: #d3cc40;
$custom-light: #e4db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d3cc40",
  "rgb": {
    "r": 211,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 57.143,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82643,
    "c": 0.15519,
    "h": 106.5
  },
  "luminance": 0.57405
}

Semantic roles & 50–950 ramp

primary
#D3CC40
secondary
#333784
accent
#4AE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D3CC40

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

Preview Lab → · Contrast checker → · Palette generator →

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