#D2C857#D2C857

#D2C857 is a light, vivid yellow. Relative luminance 0.557; OKLCH L 81.9% C 0.134 H 104.2°. Best body text is #000000 at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#D2C857
RGBrgb(210, 200, 87)
HSLhsl(55, 58%, 58%)
HSVhsv(55, 59%, 82%)
CMYKcmyk(0%, 4.8%, 58.6%, 17.6%)
CIE-LABlab(79.44, -10.60, 56.47)
CIE-LCHlch(79.44, 57.45, 100.63°)
OKLaboklab(81.91% -0.0331 0.1302)
OKLCHoklch(81.91% 0.134 104.2)
XYZxyz(48.9546, 55.7000, 17.1874)
Luminance0.5570 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C857 #5761D2
analogous
#D28A57 #D2C857 #9ED257
triadic
#D2C857 #57D2C8 #C857D2
tetradic
#D2C857 #57D28A #5761D2 #D2579E
square
#D2C857 #57D28A #5761D2 #D2579E
split-complementary
#D2C857 #579ED2 #8A57D2
monochromatic
#8A8225 #BAAF32 #D2C857 #DFD887 #ECE8B8

Accessibility & contrast

On white

1.73
#D2C857 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.14
#D2C857 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C857
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C857#FFFFFF#000000##000000
##D2C8571.001.7312.1412.14
#FFFFFF1.731.0021.0021.00
#00000012.1421.001.001.00
##00000012.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C24B
Deuteranopia (green-blind)
#DCC75D
Tritanopia (blue-blind)
#E0BCAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c857;
/* rgb */ color: rgb(210, 200, 87);
/* oklch */ color: oklch(81.9% 0.134 104.2);
Tailwind
colors: {
  custom: {
    50: '#e2d88a',
    500: '#d2c857',
    950: '#000000',
  },
}
SCSS
$custom: #d2c857;
$custom-light: #e2d88a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c857",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 87
  },
  "hsl": {
    "h": 55.122,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81913,
    "c": 0.13432,
    "h": 104.2
  },
  "luminance": 0.55698
}

Semantic roles & 50–950 ramp

primary
#D2C857
secondary
#3D4490
accent
#53E147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C857

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

Preview Lab → · Contrast checker → · Palette generator →

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