#D1C052#D1C052

#D1C052 is a light, vivid yellow. Relative luminance 0.519; OKLCH L 80.1% C 0.131 H 100.6°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#D1C052
RGBrgb(209, 192, 82)
HSLhsl(52, 58%, 57%)
HSVhsv(52, 61%, 82%)
CMYKcmyk(0%, 8.1%, 60.8%, 18%)
CIE-LABlab(77.20, -7.27, 56.19)
CIE-LCHlch(77.20, 56.65, 97.37°)
OKLaboklab(80.1% -0.0241 0.129)
OKLCHoklch(80.1% 0.131 100.6)
XYZxyz(46.6689, 51.8657, 15.5338)
Luminance0.5186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C052 #5263D1
analogous
#D18152 #D1C052 #A2D152
triadic
#D1C052 #52D1C0 #C052D1
tetradic
#D1C052 #52D181 #5263D1 #D152A2
square
#D1C052 #52D181 #5263D1 #D152A2
split-complementary
#D1C052 #52A2D1 #8152D1
monochromatic
#857823 #B6A430 #D1C052 #DED282 #EBE3B3

Accessibility & contrast

On white

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

On black

11.37
#D1C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C052
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C052#FFFFFF#000000##000000
##D1C0521.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d1c052;
/* rgb */ color: rgb(209, 192, 82);
/* oklch */ color: oklch(80.1% 0.131 100.6);
Tailwind
colors: {
  custom: {
    50: '#e2d287',
    500: '#d1c052',
    950: '#000000',
  },
}
SCSS
$custom: #d1c052;
$custom-light: #e2d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c052",
  "rgb": {
    "r": 209,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 51.969,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.80097,
    "c": 0.13119,
    "h": 100.6
  },
  "luminance": 0.51864
}

Semantic roles & 50–950 ramp

primary
#D1C052
secondary
#3B468C
accent
#5BE147
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140B
muted
#84837E

Preview Lab

Preview with #D1C052

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

Preview Lab → · Contrast checker → · Palette generator →

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