#D1C852#D1C852

#D1C852 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.139 H 104.9°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D1C852
RGBrgb(209, 200, 82)
HSLhsl(56, 58%, 57%)
HSVhsv(56, 61%, 82%)
CMYKcmyk(0%, 4.3%, 60.8%, 18%)
CIE-LABlab(79.31, -11.36, 58.50)
CIE-LCHlch(79.31, 59.59, 100.99°)
OKLaboklab(81.78% -0.0357 0.1339)
OKLCHoklch(81.78% 0.139 104.9)
XYZxyz(48.4735, 55.4747, 16.1353)
Luminance0.5547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C852 #525BD1
analogous
#D18952 #D1C852 #9BD152
triadic
#D1C852 #52D1C8 #C852D1
tetradic
#D1C852 #52D189 #525BD1 #D1529B
square
#D1C852 #52D189 #525BD1 #D1529B
split-complementary
#D1C852 #529BD1 #8952D1
monochromatic
#857E23 #B6AC30 #D1C852 #DED782 #EBE7B3

Accessibility & contrast

On white

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

On black

12.09
#D1C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C852
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C852#FFFFFF#000000##000000
##D1C8521.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1c852;
/* rgb */ color: rgb(209, 200, 82);
/* oklch */ color: oklch(81.8% 0.139 104.9);
Tailwind
colors: {
  custom: {
    50: '#e2d887',
    500: '#d1c852',
    950: '#000000',
  },
}
SCSS
$custom: #d1c852;
$custom-light: #e2d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c852",
  "rgb": {
    "r": 209,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 55.748,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81776,
    "c": 0.13855,
    "h": 104.9
  },
  "luminance": 0.55473
}

Semantic roles & 50–950 ramp

primary
#D1C852
secondary
#3B418C
accent
#52E147
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1C852

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

Preview Lab → · Contrast checker → · Palette generator →

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