#D3CC42#D3CC42

#D3CC42 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.7% C 0.154 H 106.4°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#D3CC42
RGBrgb(211, 204, 66)
HSLhsl(57, 62%, 54%)
HSVhsv(57, 69%, 83%)
CMYKcmyk(0%, 3.3%, 68.7%, 17.3%)
CIE-LABlab(80.42, -13.49, 66.19)
CIE-LCHlch(80.42, 67.55, 101.52°)
OKLaboklab(82.66% -0.0436 0.1476)
OKLCHoklch(82.66% 0.154 106.4)
XYZxyz(49.4421, 57.4297, 13.6338)
Luminance0.5743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D3CC42 #4249D3
analogous
#D38342 #D3CC42 #92D342
triadic
#D3CC42 #42D3CC #CC42D3
tetradic
#D3CC42 #42D383 #4249D3 #D34292
square
#D3CC42 #42D383 #4249D3 #D34292
split-complementary
#D3CC42 #4292D3 #8342D3
monochromatic
#7D791D #AFA929 #D3CC42 #DFD974 #EAE7A5

Accessibility & contrast

On white

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

On black

12.49
#D3CC42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D3CC42
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D3CC42#FFFFFF#000000##000000
##D3CC421.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC42D
Deuteranopia (green-blind)
#E0CA4B
Tritanopia (blue-blind)
#E2BFB1
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d3cc42;
/* rgb */ color: rgb(211, 204, 66);
/* oklch */ color: oklch(82.7% 0.154 106.4);
Tailwind
colors: {
  custom: {
    50: '#e4db7f',
    500: '#d3cc42',
    950: '#000000',
  },
}
SCSS
$custom: #d3cc42;
$custom-light: #e4db7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d3cc42",
  "rgb": {
    "r": 211,
    "g": 204,
    "b": 66
  },
  "hsl": {
    "h": 57.103,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.82658,
    "c": 0.15391,
    "h": 106.4
  },
  "luminance": 0.57428
}

Semantic roles & 50–950 ramp

primary
#D3CC42
secondary
#343885
accent
#4AE542
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D3CC42

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

Preview Lab → · Contrast checker → · Palette generator →

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