#D0C852#D0C852

#D0C852 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.139 H 105.4°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#D0C852
RGBrgb(208, 200, 82)
HSLhsl(56, 57%, 57%)
HSVhsv(56, 61%, 82%)
CMYKcmyk(0%, 3.8%, 60.6%, 18.4%)
CIE-LABlab(79.23, -11.78, 58.38)
CIE-LCHlch(79.23, 59.56, 101.40°)
OKLaboklab(81.69% -0.0368 0.1337)
OKLCHoklch(81.69% 0.139 105.4)
XYZxyz(48.1913, 55.3293, 16.1221)
Luminance0.5533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D0C852 #525AD0
analogous
#D08952 #D0C852 #99D052
triadic
#D0C852 #52D0C8 #C852D0
tetradic
#D0C852 #52D089 #525AD0 #D05299
square
#D0C852 #52D089 #525AD0 #D05299
split-complementary
#D0C852 #5299D0 #8952D0
monochromatic
#847E24 #B4AC31 #D0C852 #DDD782 #EAE7B2

Accessibility & contrast

On white

1.74
#D0C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#D0C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D0C852
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D0C852#FFFFFF#000000##000000
##D0C8521.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DBC759
Tritanopia (blue-blind)
#DEBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d0c852;
/* rgb */ color: rgb(208, 200, 82);
/* oklch */ color: oklch(81.7% 0.139 105.4);
Tailwind
colors: {
  custom: {
    50: '#e1d887',
    500: '#d0c852',
    950: '#000000',
  },
}
SCSS
$custom: #d0c852;
$custom-light: #e1d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d0c852",
  "rgb": {
    "r": 208,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 56.19,
    "s": 57.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81689,
    "c": 0.13864,
    "h": 105.4
  },
  "luminance": 0.55328
}

Semantic roles & 50–950 ramp

primary
#D0C852
secondary
#3B408B
accent
#51E147
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D0C852

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

Preview Lab → · Contrast checker → · Palette generator →

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