#D1CA52#D1CA52

#D1CA52 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.2% C 0.141 H 105.9°. Best body text is #000000 at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#D1CA52
RGBrgb(209, 202, 82)
HSLhsl(57, 58%, 57%)
HSVhsv(57, 61%, 82%)
CMYKcmyk(0%, 3.3%, 60.8%, 18%)
CIE-LABlab(79.84, -12.37, 59.07)
CIE-LCHlch(79.84, 60.36, 101.83°)
OKLaboklab(82.2% -0.0386 0.1351)
OKLCHoklch(82.2% 0.141 105.9)
XYZxyz(48.9397, 56.4072, 16.2907)
Luminance0.5641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CA52 #5259D1
analogous
#D18B52 #D1CA52 #99D152
triadic
#D1CA52 #52D1CA #CA52D1
tetradic
#D1CA52 #52D18B #5259D1 #D15299
square
#D1CA52 #52D18B #5259D1 #D15299
split-complementary
#D1CA52 #5299D1 #8B52D1
monochromatic
#858023 #B6AE30 #D1CA52 #DED982 #EBE8B3

Accessibility & contrast

On white

1.71
#D1CA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.28
#D1CA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CA52
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CA52#FFFFFF#000000##000000
##D1CA521.001.7112.2812.28
#FFFFFF1.711.0021.0021.00
#00000012.2821.001.001.00
##00000012.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC344
Deuteranopia (green-blind)
#DDC859
Tritanopia (blue-blind)
#DFBEB1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d1ca52;
/* rgb */ color: rgb(209, 202, 82);
/* oklch */ color: oklch(82.2% 0.141 105.9);
Tailwind
colors: {
  custom: {
    50: '#e2d987',
    500: '#d1ca52',
    950: '#000000',
  },
}
SCSS
$custom: #d1ca52;
$custom-light: #e2d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d1ca52",
  "rgb": {
    "r": 209,
    "g": 202,
    "b": 82
  },
  "hsl": {
    "h": 56.693,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82198,
    "c": 0.14051,
    "h": 105.9
  },
  "luminance": 0.56406
}

Semantic roles & 50–950 ramp

primary
#D1CA52
secondary
#3B408C
accent
#4FE147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1CA52

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

Preview Lab → · Contrast checker → · Palette generator →

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