#D2C271#D2C271

#D2C271 is a light, moderate yellow. Relative luminance 0.535; OKLCH L 81.0% C 0.104 H 98.4°. Best body text is #000000 at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#D2C271
RGBrgb(210, 194, 113)
HSLhsl(50, 52%, 63%)
HSVhsv(50, 46%, 82%)
CMYKcmyk(0%, 7.6%, 46.2%, 17.6%)
CIE-LABlab(78.16, -5.33, 42.60)
CIE-LCHlch(78.16, 42.93, 97.14°)
OKLaboklab(80.99% -0.0152 0.1025)
OKLCHoklch(80.99% 0.104 98.4)
XYZxyz(48.8521, 53.4792, 23.3688)
Luminance0.5348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C271 #7181D2
analogous
#D29171 #D2C271 #B1D271
triadic
#D2C271 #71D2C2 #C271D2
tetradic
#D2C271 #71D291 #7181D2 #D271B1
square
#D2C271 #71D291 #7181D2 #D271B1
split-complementary
#D2C271 #71B1D2 #9171D2
monochromatic
#988730 #C3AE43 #D2C271 #E1D69F #EFEACE

Accessibility & contrast

On white

1.80
#D2C271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.70
#D2C271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C271
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C271#FFFFFF#000000##000000
##D2C2711.001.8011.7011.70
#FFFFFF1.801.0021.0021.00
#00000011.7021.001.001.00
##00000011.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BE6A
Deuteranopia (green-blind)
#D5C474
Tritanopia (blue-blind)
#DFB7AF
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d2c271;
/* rgb */ color: rgb(210, 194, 113);
/* oklch */ color: oklch(81.0% 0.104 98.4);
Tailwind
colors: {
  custom: {
    50: '#e1d49b',
    500: '#d2c271',
    950: '#000000',
  },
}
SCSS
$custom: #d2c271;
$custom-light: #e1d49b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c271",
  "rgb": {
    "r": 210,
    "g": 194,
    "b": 113
  },
  "hsl": {
    "h": 50.103,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.80987,
    "c": 0.10358,
    "h": 98.4
  },
  "luminance": 0.53477
}

Semantic roles & 50–950 ramp

primary
#D2C271
secondary
#4A579E
accent
#3FBF26
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#16140E
muted
#84837F

Preview Lab

Preview with #D2C271

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

Preview Lab → · Contrast checker → · Palette generator →

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