#D1CA40#D1CA40

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

Color values

HEX#D1CA40
RGBrgb(209, 202, 64)
HSLhsl(57, 61%, 54%)
HSVhsv(57, 69%, 82%)
CMYKcmyk(0%, 3.3%, 69.4%, 18%)
CIE-LABlab(79.71, -13.42, 66.17)
CIE-LCHlch(79.71, 67.52, 101.47°)
OKLaboklab(82.05% -0.0435 0.1473)
OKLCHoklch(82.05% 0.154 106.4)
XYZxyz(48.3423, 56.1682, 13.1446)
Luminance0.5617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CA40 #4047D1
analogous
#D18140 #D1CA40 #90D140
triadic
#D1CA40 #40D1CA #CA40D1
tetradic
#D1CA40 #40D181 #4047D1 #D14090
square
#D1CA40 #40D181 #4047D1 #D14090
split-complementary
#D1CA40 #4090D1 #8140D1
monochromatic
#79751D #ABA429 #D1CA40 #DDD871 #E9E5A3

Accessibility & contrast

On white

1.72
#D1CA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#D1CA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CA40
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CA40#FFFFFF#000000##000000
##D1CA401.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC22A
Deuteranopia (green-blind)
#DEC849
Tritanopia (blue-blind)
#E0BDAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d1ca40;
/* rgb */ color: rgb(209, 202, 64);
/* oklch */ color: oklch(82.0% 0.154 106.4);
Tailwind
colors: {
  custom: {
    50: '#e3d97d',
    500: '#d1ca40',
    950: '#000000',
  },
}
SCSS
$custom: #d1ca40;
$custom-light: #e3d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ca40",
  "rgb": {
    "r": 209,
    "g": 202,
    "b": 64
  },
  "hsl": {
    "h": 57.103,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.82047,
    "c": 0.15358,
    "h": 106.4
  },
  "luminance": 0.56167
}

Semantic roles & 50–950 ramp

primary
#D1CA40
secondary
#343881
accent
#4BE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1CA40

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

Preview Lab → · Contrast checker → · Palette generator →

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