#D2CA52#D2CA52

#D2CA52 is a very light, vivid yellow. Relative luminance 0.566; OKLCH L 82.3% C 0.140 H 105.5°. Best body text is #000000 at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#D2CA52
RGBrgb(210, 202, 82)
HSLhsl(56, 59%, 57%)
HSVhsv(56, 61%, 82%)
CMYKcmyk(0%, 3.8%, 61%, 17.6%)
CIE-LABlab(79.93, -11.95, 59.19)
CIE-LCHlch(79.93, 60.38, 101.42°)
OKLaboklab(82.28% -0.0375 0.1353)
OKLCHoklch(82.28% 0.14 105.5)
XYZxyz(49.2236, 56.5536, 16.3040)
Luminance0.5655 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CA52 #525AD2
analogous
#D28A52 #D2CA52 #9AD252
triadic
#D2CA52 #52D2CA #CA52D2
tetradic
#D2CA52 #52D28A #525AD2 #D2529A
square
#D2CA52 #52D28A #525AD2 #D2529A
split-complementary
#D2CA52 #529AD2 #8A52D2
monochromatic
#878023 #B7AF30 #D2CA52 #DFD983 #EBE8B3

Accessibility & contrast

On white

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

On black

12.31
#D2CA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CA52
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CA52#FFFFFF#000000##000000
##D2CA521.001.7112.3112.31
#FFFFFF1.711.0021.0021.00
#00000012.3121.001.001.00
##00000012.3121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2ca52;
/* rgb */ color: rgb(210, 202, 82);
/* oklch */ color: oklch(82.3% 0.140 105.5);
Tailwind
colors: {
  custom: {
    50: '#e3d988',
    500: '#d2ca52',
    950: '#000000',
  },
}
SCSS
$custom: #d2ca52;
$custom-light: #e3d988;
$custom-dark: #000000;
JSON
{
  "hex": "#d2ca52",
  "rgb": {
    "r": 210,
    "g": 202,
    "b": 82
  },
  "hsl": {
    "h": 56.25,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.82284,
    "c": 0.14041,
    "h": 105.5
  },
  "luminance": 0.56552
}

Semantic roles & 50–950 ramp

primary
#D2CA52
secondary
#3B408D
accent
#50E246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2CA52

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

Preview Lab → · Contrast checker → · Palette generator →

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