#D0C052#D0C052

#D0C052 is a light, vivid yellow. Relative luminance 0.517; OKLCH L 80.0% C 0.131 H 101.1°. Best body text is #000000 at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#D0C052
RGBrgb(208, 192, 82)
HSLhsl(52, 57%, 57%)
HSVhsv(52, 61%, 82%)
CMYKcmyk(0%, 7.7%, 60.6%, 18.4%)
CIE-LABlab(77.11, -7.69, 56.06)
CIE-LCHlch(77.11, 56.59, 97.81°)
OKLaboklab(80.01% -0.0252 0.1287)
OKLCHoklch(80.01% 0.131 101.1)
XYZxyz(46.3868, 51.7202, 15.5206)
Luminance0.5172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C052 #5262D0
analogous
#D08152 #D0C052 #A1D052
triadic
#D0C052 #52D0C0 #C052D0
tetradic
#D0C052 #52D081 #5262D0 #D052A1
square
#D0C052 #52D081 #5262D0 #D052A1
split-complementary
#D0C052 #52A1D0 #8152D0
monochromatic
#847824 #B4A331 #D0C052 #DDD282 #EAE3B2

Accessibility & contrast

On white

1.85
#D0C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.34
#D0C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C052
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C052#FFFFFF#000000##000000
##D0C0521.001.8511.3411.34
#FFFFFF1.851.0021.0021.00
#00000011.3421.001.001.00
##00000011.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BB46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#DFB4A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #d0c052;
/* rgb */ color: rgb(208, 192, 82);
/* oklch */ color: oklch(80.0% 0.131 101.1);
Tailwind
colors: {
  custom: {
    50: '#e1d287',
    500: '#d0c052',
    950: '#000000',
  },
}
SCSS
$custom: #d0c052;
$custom-light: #e1d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c052",
  "rgb": {
    "r": 208,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 52.381,
    "s": 57.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.80007,
    "c": 0.13117,
    "h": 101.1
  },
  "luminance": 0.51718
}

Semantic roles & 50–950 ramp

primary
#D0C052
secondary
#3B458B
accent
#5BE147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D0C052

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

Preview Lab → · Contrast checker → · Palette generator →

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