#D2C159#D2C159

#D2C159 is a light, vivid yellow. Relative luminance 0.526; OKLCH L 80.5% C 0.126 H 100.1°. Best body text is #000000 at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#D2C159
RGBrgb(210, 193, 89)
HSLhsl(52, 57%, 59%)
HSVhsv(52, 58%, 82%)
CMYKcmyk(0%, 8.1%, 57.6%, 17.6%)
CIE-LABlab(77.62, -6.87, 53.51)
CIE-LCHlch(77.62, 53.95, 97.31°)
OKLaboklab(80.47% -0.0222 0.1241)
OKLCHoklch(80.47% 0.126 100.1)
XYZxyz(47.4532, 52.5647, 17.0957)
Luminance0.5256 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C159 #596AD2
analogous
#D28459 #D2C159 #A6D259
triadic
#D2C159 #59D2C1 #C159D2
tetradic
#D2C159 #59D284 #596AD2 #D259A6
square
#D2C159 #59D284 #596AD2 #D259A6
split-complementary
#D2C159 #59A6D2 #8459D2
monochromatic
#8B7D26 #BBA833 #D2C159 #DFD389 #ECE5B9

Accessibility & contrast

On white

1.82
#D2C159 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.51
#D2C159 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C159
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C159#FFFFFF#000000##000000
##D2C1591.001.8211.5111.51
#FFFFFF1.821.0021.0021.00
#00000011.5121.001.001.00
##00000011.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c159;
/* rgb */ color: rgb(210, 193, 89);
/* oklch */ color: oklch(80.5% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#e2d38b',
    500: '#d2c159',
    950: '#000000',
  },
}
SCSS
$custom: #d2c159;
$custom-light: #e2d38b;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c159",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 89
  },
  "hsl": {
    "h": 51.57,
    "s": 57.346,
    "l": 58.627
  },
  "oklch": {
    "l": 0.8047,
    "c": 0.12607,
    "h": 100.1
  },
  "luminance": 0.52563
}

Semantic roles & 50–950 ramp

primary
#D2C159
secondary
#3E4A91
accent
#5DE147
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C159

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

Preview Lab → · Contrast checker → · Palette generator →

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