#D2C851#D2C851

#D2C851 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.139 H 104.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D2C851
RGBrgb(210, 200, 81)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 61%, 82%)
CMYKcmyk(0%, 4.8%, 61.4%, 17.6%)
CIE-LABlab(79.39, -11.01, 59.03)
CIE-LCHlch(79.39, 60.05, 100.56°)
OKLaboklab(81.85% -0.0349 0.1349)
OKLCHoklch(81.85% 0.139 104.5)
XYZxyz(48.7196, 55.6060, 15.9497)
Luminance0.5560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C851 #515BD2
analogous
#D28851 #D2C851 #9CD251
triadic
#D2C851 #51D2C8 #C851D2
tetradic
#D2C851 #51D288 #515BD2 #D2519C
square
#D2C851 #51D288 #515BD2 #D2519C
split-complementary
#D2C851 #519CD2 #8851D2
monochromatic
#867E23 #B7AC2F #D2C851 #DFD782 #EBE7B2

Accessibility & contrast

On white

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

On black

12.12
#D2C851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C851
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C851#FFFFFF#000000##000000
##D2C8511.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E1BBAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c851;
/* rgb */ color: rgb(210, 200, 81);
/* oklch */ color: oklch(81.9% 0.139 104.5);
Tailwind
colors: {
  custom: {
    50: '#e3d887',
    500: '#d2c851',
    950: '#000000',
  },
}
SCSS
$custom: #d2c851;
$custom-light: #e3d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c851",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 55.349,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81853,
    "c": 0.13929,
    "h": 104.5
  },
  "luminance": 0.55604
}

Semantic roles & 50–950 ramp

primary
#D2C851
secondary
#3B418D
accent
#52E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C851

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

Preview Lab → · Contrast checker → · Palette generator →

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