#D1CC40#D1CC40

#D1CC40 is a very light, vivid yellow. Relative luminance 0.571; OKLCH L 82.5% C 0.155 H 107.3°. Best body text is #000000 at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#D1CC40
RGBrgb(209, 204, 64)
HSLhsl(58, 61%, 54%)
HSVhsv(58, 69%, 82%)
CMYKcmyk(0%, 2.4%, 69.4%, 18%)
CIE-LABlab(80.24, -14.43, 66.70)
CIE-LCHlch(80.24, 68.24, 102.21°)
OKLaboklab(82.47% -0.0463 0.1484)
OKLCHoklch(82.47% 0.155 107.3)
XYZxyz(48.8146, 57.1128, 13.3020)
Luminance0.5711 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CC40 #4045D1
analogous
#D18340 #D1CC40 #8DD140
triadic
#D1CC40 #40D1CC #CC40D1
tetradic
#D1CC40 #40D183 #4045D1 #D1408D
square
#D1CC40 #40D183 #4045D1 #D1408D
split-complementary
#D1CC40 #408DD1 #8340D1
monochromatic
#79761D #ABA629 #D1CC40 #DDD971 #E9E6A3

Accessibility & contrast

On white

1.69
#D1CC40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.42
#D1CC40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CC40
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CC40#FFFFFF#000000##000000
##D1CC401.001.6912.4212.42
#FFFFFF1.691.0021.0021.00
#00000012.4221.001.001.00
##00000012.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1cc40;
/* rgb */ color: rgb(209, 204, 64);
/* oklch */ color: oklch(82.5% 0.155 107.3);
Tailwind
colors: {
  custom: {
    50: '#e3db7d',
    500: '#d1cc40',
    950: '#000000',
  },
}
SCSS
$custom: #d1cc40;
$custom-light: #e3db7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cc40",
  "rgb": {
    "r": 209,
    "g": 204,
    "b": 64
  },
  "hsl": {
    "h": 57.931,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82472,
    "c": 0.15547,
    "h": 107.3
  },
  "luminance": 0.57111
}

Semantic roles & 50–950 ramp

primary
#D1CC40
secondary
#343681
accent
#49E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1CC40

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

Preview Lab → · Contrast checker → · Palette generator →

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