#D1C752#D1C752

#D1C752 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.6% C 0.138 H 104.4°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#D1C752
RGBrgb(209, 199, 82)
HSLhsl(55, 58%, 57%)
HSVhsv(55, 61%, 82%)
CMYKcmyk(0%, 4.8%, 60.8%, 18%)
CIE-LABlab(79.05, -10.85, 58.21)
CIE-LCHlch(79.05, 59.21, 100.56°)
OKLaboklab(81.57% -0.0343 0.1333)
OKLCHoklch(81.57% 0.138 104.4)
XYZxyz(48.2426, 55.0131, 16.0584)
Luminance0.5501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1C752 #525CD1
analogous
#D18852 #D1C752 #9BD152
triadic
#D1C752 #52D1C7 #C752D1
tetradic
#D1C752 #52D188 #525CD1 #D1529B
square
#D1C752 #52D188 #525CD1 #D1529B
split-complementary
#D1C752 #529BD1 #8852D1
monochromatic
#857D23 #B6AB30 #D1C752 #DED782 #EBE6B3

Accessibility & contrast

On white

1.75
#D1C752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#D1C752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1C752
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1C752#FFFFFF#000000##000000
##D1C7521.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C145
Deuteranopia (green-blind)
#DBC658
Tritanopia (blue-blind)
#DFBBAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d1c752;
/* rgb */ color: rgb(209, 199, 82);
/* oklch */ color: oklch(81.6% 0.138 104.4);
Tailwind
colors: {
  custom: {
    50: '#e2d787',
    500: '#d1c752',
    950: '#000000',
  },
}
SCSS
$custom: #d1c752;
$custom-light: #e2d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d1c752",
  "rgb": {
    "r": 209,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 55.276,
    "s": 57.991,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81565,
    "c": 0.1376,
    "h": 104.4
  },
  "luminance": 0.55011
}

Semantic roles & 50–950 ramp

primary
#D1C752
secondary
#3B428C
accent
#53E147
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D1C752

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

Preview Lab → · Contrast checker → · Palette generator →

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