#D1CA42#D1CA42

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

Color values

HEX#D1CA42
RGBrgb(209, 202, 66)
HSLhsl(57, 61%, 54%)
HSVhsv(57, 68%, 82%)
CMYKcmyk(0%, 3.3%, 68.4%, 18%)
CIE-LABlab(79.72, -13.32, 65.43)
CIE-LCHlch(79.72, 66.78, 101.51°)
OKLaboklab(82.06% -0.043 0.1461)
OKLCHoklch(82.06% 0.152 106.4)
XYZxyz(48.4002, 56.1914, 13.4497)
Luminance0.5619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CA42 #4249D1
analogous
#D18342 #D1CA42 #91D142
triadic
#D1CA42 #42D1CA #CA42D1
tetradic
#D1CA42 #42D183 #4249D1 #D14291
square
#D1CA42 #42D183 #4249D1 #D14291
split-complementary
#D1CA42 #4291D1 #8342D1
monochromatic
#7B761E #ACA62A #D1CA42 #DDD873 #E9E6A4

Accessibility & contrast

On white

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

On black

12.24
#D1CA42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CA42
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CA42#FFFFFF#000000##000000
##D1CA421.001.7212.2412.24
#FFFFFF1.721.0021.0021.00
#00000012.2421.001.001.00
##00000012.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1ca42;
/* rgb */ color: rgb(209, 202, 66);
/* oklch */ color: oklch(82.1% 0.152 106.4);
Tailwind
colors: {
  custom: {
    50: '#e3d97e',
    500: '#d1ca42',
    950: '#000000',
  },
}
SCSS
$custom: #d1ca42;
$custom-light: #e3d97e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ca42",
  "rgb": {
    "r": 209,
    "g": 202,
    "b": 66
  },
  "hsl": {
    "h": 57.063,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.82062,
    "c": 0.15228,
    "h": 106.4
  },
  "luminance": 0.5619
}

Semantic roles & 50–950 ramp

primary
#D1CA42
secondary
#353883
accent
#4CE444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D1CA42

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

Preview Lab → · Contrast checker → · Palette generator →

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