#D5C752#D5C752

#D5C752 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.137 H 102.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D5C752
RGBrgb(213, 199, 82)
HSLhsl(54, 61%, 58%)
HSVhsv(54, 62%, 84%)
CMYKcmyk(0%, 6.6%, 61.5%, 16.5%)
CIE-LABlab(79.39, -9.18, 58.68)
CIE-LCHlch(79.39, 59.39, 98.89°)
OKLaboklab(81.92% -0.0298 0.1342)
OKLCHoklch(81.92% 0.137 102.5)
XYZxyz(49.3888, 55.6041, 16.1121)
Luminance0.5560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C752 #5260D5
analogous
#D58652 #D5C752 #A1D552
triadic
#D5C752 #52D5C7 #C752D5
tetradic
#D5C752 #52D586 #5260D5 #D552A1
square
#D5C752 #52D586 #5260D5 #D552A1
split-complementary
#D5C752 #52A1D5 #8652D5
monochromatic
#8B8022 #BCAD2E #D5C752 #E1D783 #EDE7B4

Accessibility & contrast

On white

1.73
#D5C752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#D5C752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C752
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C752#FFFFFF#000000##000000
##D5C7521.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C145
Deuteranopia (green-blind)
#DCC858
Tritanopia (blue-blind)
#E4BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c752;
/* rgb */ color: rgb(213, 199, 82);
/* oklch */ color: oklch(81.9% 0.137 102.5);
Tailwind
colors: {
  custom: {
    50: '#e5d787',
    500: '#d5c752',
    950: '#000000',
  },
}
SCSS
$custom: #d5c752;
$custom-light: #e5d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c752",
  "rgb": {
    "r": 213,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 53.588,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.81916,
    "c": 0.13741,
    "h": 102.5
  },
  "luminance": 0.55602
}

Semantic roles & 50–950 ramp

primary
#D5C752
secondary
#3A4491
accent
#55E444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D5C752

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

Preview Lab → · Contrast checker → · Palette generator →

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