#D2C551#D2C551

#D2C551 is a light, vivid yellow. Relative luminance 0.542; OKLCH L 81.2% C 0.136 H 102.9°. Best body text is #000000 at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#D2C551
RGBrgb(210, 197, 81)
HSLhsl(54, 59%, 57%)
HSVhsv(54, 61%, 82%)
CMYKcmyk(0%, 6.2%, 61.4%, 17.6%)
CIE-LABlab(78.60, -9.48, 58.17)
CIE-LCHlch(78.60, 58.94, 99.26°)
OKLaboklab(81.22% -0.0305 0.133)
OKLCHoklch(81.22% 0.136 102.9)
XYZxyz(48.0316, 54.2300, 15.7204)
Luminance0.5423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C551 #515ED2
analogous
#D28451 #D2C551 #9FD251
triadic
#D2C551 #51D2C5 #C551D2
tetradic
#D2C551 #51D284 #515ED2 #D2519F
square
#D2C551 #51D284 #515ED2 #D2519F
split-complementary
#D2C551 #519FD2 #8451D2
monochromatic
#867C23 #B7A92F #D2C551 #DFD582 #EBE5B2

Accessibility & contrast

On white

1.77
#D2C551 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.85
#D2C551 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C551
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C551#FFFFFF#000000##000000
##D2C5511.001.7711.8511.85
#FFFFFF1.771.0021.0021.00
#00000011.8521.001.001.00
##00000011.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF44
Deuteranopia (green-blind)
#DAC557
Tritanopia (blue-blind)
#E1B8AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c551;
/* rgb */ color: rgb(210, 197, 81);
/* oklch */ color: oklch(81.2% 0.136 102.9);
Tailwind
colors: {
  custom: {
    50: '#e3d687',
    500: '#d2c551',
    950: '#000000',
  },
}
SCSS
$custom: #d2c551;
$custom-light: #e3d687;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c551",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 81
  },
  "hsl": {
    "h": 53.953,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81222,
    "c": 0.13649,
    "h": 102.9
  },
  "luminance": 0.54228
}

Semantic roles & 50–950 ramp

primary
#D2C551
secondary
#3B438D
accent
#55E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C551

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

Preview Lab → · Contrast checker → · Palette generator →

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