#D5C052#D5C052

#D5C052 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.5% C 0.131 H 98.5°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#D5C052
RGBrgb(213, 192, 82)
HSLhsl(50, 61%, 58%)
HSVhsv(50, 62%, 84%)
CMYKcmyk(0%, 9.9%, 61.5%, 16.5%)
CIE-LABlab(77.55, -5.59, 56.67)
CIE-LCHlch(77.55, 56.95, 95.63°)
OKLaboklab(80.46% -0.0195 0.1299)
OKLCHoklch(80.46% 0.131 98.5)
XYZxyz(47.8152, 52.4567, 15.5875)
Luminance0.5245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C052 #5267D5
analogous
#D57F52 #D5C052 #A8D552
triadic
#D5C052 #52D5C0 #C052D5
tetradic
#D5C052 #52D57F #5267D5 #D552A8
square
#D5C052 #52D57F #5267D5 #D552A8
split-complementary
#D5C052 #52A8D5 #7F52D5
monochromatic
#8B7A22 #BCA52E #D5C052 #E1D283 #EDE4B4

Accessibility & contrast

On white

1.83
#D5C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#D5C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C052
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C052#FFFFFF#000000##000000
##D5C0521.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#E5B3A8
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d5c052;
/* rgb */ color: rgb(213, 192, 82);
/* oklch */ color: oklch(80.5% 0.131 98.5);
Tailwind
colors: {
  custom: {
    50: '#e5d287',
    500: '#d5c052',
    950: '#000000',
  },
}
SCSS
$custom: #d5c052;
$custom-light: #e5d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c052",
  "rgb": {
    "r": 213,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 50.382,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8046,
    "c": 0.13135,
    "h": 98.5
  },
  "luminance": 0.52455
}

Semantic roles & 50–950 ramp

primary
#D5C052
secondary
#3A4891
accent
#5DE444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D5C052

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

Preview Lab → · Contrast checker → · Palette generator →

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