#D0C152#D0C152

#D0C152 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.2% C 0.132 H 101.7°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#D0C152
RGBrgb(208, 193, 82)
HSLhsl(53, 57%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 7.2%, 60.6%, 18.4%)
CIE-LABlab(77.38, -8.20, 56.36)
CIE-LCHlch(77.38, 56.95, 98.28°)
OKLaboklab(80.22% -0.0267 0.1293)
OKLCHoklch(80.22% 0.132 101.7)
XYZxyz(46.6071, 52.1609, 15.5940)
Luminance0.5216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C152 #5261D0
analogous
#D08252 #D0C152 #A0D052
triadic
#D0C152 #52D0C1 #C152D0
tetradic
#D0C152 #52D082 #5261D0 #D052A0
square
#D0C152 #52D082 #5261D0 #D052A0
split-complementary
#D0C152 #52A0D0 #8252D0
monochromatic
#847824 #B4A431 #D0C152 #DDD282 #EAE3B2

Accessibility & contrast

On white

1.84
#D0C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#D0C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C152
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C152#FFFFFF#000000##000000
##D0C1521.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#DFB5A9
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d0c152;
/* rgb */ color: rgb(208, 193, 82);
/* oklch */ color: oklch(80.2% 0.132 101.7);
Tailwind
colors: {
  custom: {
    50: '#e1d387',
    500: '#d0c152',
    950: '#000000',
  },
}
SCSS
$custom: #d0c152;
$custom-light: #e1d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c152",
  "rgb": {
    "r": 208,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 52.857,
    "s": 57.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80216,
    "c": 0.13206,
    "h": 101.7
  },
  "luminance": 0.52159
}

Semantic roles & 50–950 ramp

primary
#D0C152
secondary
#3B458B
accent
#5AE147
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D0C152

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

Preview Lab → · Contrast checker → · Palette generator →

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