#D2C151#D2C151

#D2C151 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.4% C 0.133 H 100.7°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#D2C151
RGBrgb(210, 193, 81)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 61%, 82%)
CMYKcmyk(0%, 8.1%, 61.4%, 17.6%)
CIE-LABlab(77.54, -7.43, 57.03)
CIE-LCHlch(77.54, 57.51, 97.42°)
OKLaboklab(80.38% -0.0247 0.1306)
OKLCHoklch(80.38% 0.133 100.7)
XYZxyz(47.1354, 52.4376, 15.4216)
Luminance0.5244 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C151 #5162D2
analogous
#D28151 #D2C151 #A3D251
triadic
#D2C151 #51D2C1 #C151D2
tetradic
#D2C151 #51D281 #5162D2 #D251A3
square
#D2C151 #51D281 #5162D2 #D251A3
split-complementary
#D2C151 #51A3D2 #8151D2
monochromatic
#867923 #B7A52F #D2C151 #DFD282 #EBE4B2

Accessibility & contrast

On white

1.83
#D2C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#D2C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C151
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C151#FFFFFF#000000##000000
##D2C1511.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c151;
/* rgb */ color: rgb(210, 193, 81);
/* oklch */ color: oklch(80.4% 0.133 100.7);
Tailwind
colors: {
  custom: {
    50: '#e3d386',
    500: '#d2c151',
    950: '#000000',
  },
}
SCSS
$custom: #d2c151;
$custom-light: #e3d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c151",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 52.093,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80385,
    "c": 0.13291,
    "h": 100.7
  },
  "luminance": 0.52436
}

Semantic roles & 50–950 ramp

primary
#D2C151
secondary
#3B458D
accent
#5AE246
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C151

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

Preview Lab → · Contrast checker → · Palette generator →

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