#D2CD51#D2CD51

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

Color values

HEX#D2CD51
RGBrgb(210, 205, 81)
HSLhsl(58, 59%, 57%)
HSVhsv(58, 61%, 82%)
CMYKcmyk(0%, 2.4%, 61.4%, 17.6%)
CIE-LABlab(80.72, -13.53, 60.47)
CIE-LCHlch(80.72, 61.96, 102.62°)
OKLaboklab(82.91% -0.0421 0.1379)
OKLCHoklch(82.91% 0.144 107)
XYZxyz(49.8965, 57.9599, 16.3420)
Luminance0.5796 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD51 #5156D2
analogous
#D28C51 #D2CD51 #97D251
triadic
#D2CD51 #51D2CD #CD51D2
tetradic
#D2CD51 #51D28C #5156D2 #D25197
square
#D2CD51 #51D28C #5156D2 #D25197
split-complementary
#D2CD51 #5197D2 #8C51D2
monochromatic
#868223 #B7B12F #D2CD51 #DFDB82 #EBE9B2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2CD51#FFFFFF#000000##000000
##D2CD511.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)
#DDC642
Deuteranopia (green-blind)
#E0CB58
Tritanopia (blue-blind)
#E0C0B3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cd51;
/* rgb */ color: rgb(210, 205, 81);
/* oklch */ color: oklch(82.9% 0.144 107.0);
Tailwind
colors: {
  custom: {
    50: '#e3dc87',
    500: '#d2cd51',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd51;
$custom-light: #e3dc87;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd51",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 81
  },
  "hsl": {
    "h": 57.674,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.8291,
    "c": 0.14416,
    "h": 107
  },
  "luminance": 0.57958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2CD51

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

Preview Lab → · Contrast checker → · Palette generator →

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