#D2C150#D2C150

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

Color values

HEX#D2C150
RGBrgb(210, 193, 80)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 62%, 82%)
CMYKcmyk(0%, 8.1%, 61.9%, 17.6%)
CIE-LABlab(77.53, -7.50, 57.45)
CIE-LCHlch(77.53, 57.94, 97.43°)
OKLaboklab(80.38% -0.025 0.1314)
OKLCHoklch(80.38% 0.134 100.8)
XYZxyz(47.0981, 52.4227, 15.2256)
Luminance0.5242 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C150 #5061D2
analogous
#D28050 #D2C150 #A2D250
triadic
#D2C150 #50D2C1 #C150D2
tetradic
#D2C150 #50D280 #5061D2 #D250A2
square
#D2C150 #50D280 #5061D2 #D250A2
split-complementary
#D2C150 #50A2D2 #8050D2
monochromatic
#857822 #B6A42F #D2C150 #DFD281 #EBE3B1

Accessibility & contrast

On white

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

On black

11.48
#D2C150 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C150
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C150#FFFFFF#000000##000000
##D2C1501.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c150;
/* rgb */ color: rgb(210, 193, 80);
/* oklch */ color: oklch(80.4% 0.134 100.8);
Tailwind
colors: {
  custom: {
    50: '#e3d386',
    500: '#d2c150',
    950: '#000000',
  },
}
SCSS
$custom: #d2c150;
$custom-light: #e3d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c150",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 80
  },
  "hsl": {
    "h": 52.154,
    "s": 59.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80376,
    "c": 0.13372,
    "h": 100.8
  },
  "luminance": 0.52421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C150

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

Preview Lab → · Contrast checker → · Palette generator →

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