#D2CD52#D2CD52

#D2CD52 is a very light, vivid yellow. Relative luminance 0.580; OKLCH L 82.9% C 0.143 H 106.9°. Best body text is #000000 at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#D2CD52
RGBrgb(210, 205, 82)
HSLhsl(58, 59%, 57%)
HSVhsv(58, 61%, 82%)
CMYKcmyk(0%, 2.4%, 61%, 17.6%)
CIE-LABlab(80.72, -13.47, 60.05)
CIE-LCHlch(80.72, 61.54, 102.64°)
OKLaboklab(82.92% -0.0418 0.1371)
OKLCHoklch(82.92% 0.143 106.9)
XYZxyz(49.9343, 57.9750, 16.5410)
Luminance0.5797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD52 #5257D2
analogous
#D28D52 #D2CD52 #97D252
triadic
#D2CD52 #52D2CD #CD52D2
tetradic
#D2CD52 #52D28D #5257D2 #D25297
square
#D2CD52 #52D28D #5257D2 #D25297
split-complementary
#D2CD52 #5297D2 #8D52D2
monochromatic
#878323 #B7B230 #D2CD52 #DFDB83 #EBE9B3

Accessibility & contrast

On white

1.67
#D2CD52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.59
#D2CD52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CD52
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CD52#FFFFFF#000000##000000
##D2CD521.001.6712.5912.59
#FFFFFF1.671.0021.0021.00
#00000012.5921.001.001.00
##00000012.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC643
Deuteranopia (green-blind)
#E0CB59
Tritanopia (blue-blind)
#E0C0B3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cd52;
/* rgb */ color: rgb(210, 205, 82);
/* oklch */ color: oklch(82.9% 0.143 106.9);
Tailwind
colors: {
  custom: {
    50: '#e3dc88',
    500: '#d2cd52',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd52;
$custom-light: #e3dc88;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd52",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 82
  },
  "hsl": {
    "h": 57.656,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.82919,
    "c": 0.14336,
    "h": 106.9
  },
  "luminance": 0.57973
}

Semantic roles & 50–950 ramp

primary
#D2CD52
secondary
#3B3E8D
accent
#4CE246
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16150C
muted
#84847F

Preview Lab

Preview with #D2CD52

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

Preview Lab → · Contrast checker → · Palette generator →

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