#D2C251#D2C251

#D2C251 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.6% C 0.134 H 101.3°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#D2C251
RGBrgb(210, 194, 81)
HSLhsl(53, 59%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 7.6%, 61.4%, 17.6%)
CIE-LABlab(77.80, -7.94, 57.31)
CIE-LCHlch(77.80, 57.86, 97.89°)
OKLaboklab(80.59% -0.0262 0.1312)
OKLCHoklch(80.59% 0.134 101.3)
XYZxyz(47.3572, 52.8812, 15.4956)
Luminance0.5288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C251 #5161D2
analogous
#D28251 #D2C251 #A2D251
triadic
#D2C251 #51D2C2 #C251D2
tetradic
#D2C251 #51D282 #5161D2 #D251A2
square
#D2C251 #51D282 #5161D2 #D251A2
split-complementary
#D2C251 #51A2D2 #8251D2
monochromatic
#867A23 #B7A62F #D2C251 #DFD382 #EBE4B2

Accessibility & contrast

On white

1.81
#D2C251 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#D2C251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C251
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C251#FFFFFF#000000##000000
##D2C2511.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BD44
Deuteranopia (green-blind)
#D7C357
Tritanopia (blue-blind)
#E1B5AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d2c251;
/* rgb */ color: rgb(210, 194, 81);
/* oklch */ color: oklch(80.6% 0.134 101.3);
Tailwind
colors: {
  custom: {
    50: '#e3d486',
    500: '#d2c251',
    950: '#000000',
  },
}
SCSS
$custom: #d2c251;
$custom-light: #e3d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c251",
  "rgb": {
    "r": 210,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 52.558,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80594,
    "c": 0.13378,
    "h": 101.3
  },
  "luminance": 0.52879
}

Semantic roles & 50–950 ramp

primary
#D2C251
secondary
#3B458D
accent
#59E246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C251

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

Preview Lab → · Contrast checker → · Palette generator →

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