#D5C852#D5C852

#D5C852 is a very light, vivid yellow. Relative luminance 0.561; OKLCH L 82.1% C 0.138 H 103.0°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#D5C852
RGBrgb(213, 200, 82)
HSLhsl(54, 61%, 58%)
HSVhsv(54, 62%, 84%)
CMYKcmyk(0%, 6.1%, 61.5%, 16.5%)
CIE-LABlab(79.65, -9.69, 58.96)
CIE-LCHlch(79.65, 59.75, 99.33°)
OKLaboklab(82.13% -0.0312 0.1348)
OKLCHoklch(82.13% 0.138 103)
XYZxyz(49.6197, 56.0658, 16.1891)
Luminance0.5606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5C852 #525FD5
analogous
#D58752 #D5C852 #A0D552
triadic
#D5C852 #52D5C8 #C852D5
tetradic
#D5C852 #52D587 #525FD5 #D552A0
square
#D5C852 #52D587 #525FD5 #D552A0
split-complementary
#D5C852 #52A0D5 #8752D5
monochromatic
#8B8022 #BCAE2E #D5C852 #E1D883 #EDE7B4

Accessibility & contrast

On white

1.72
#D5C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#D5C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5C852
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5C852#FFFFFF#000000##000000
##D5C8521.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C244
Deuteranopia (green-blind)
#DDC858
Tritanopia (blue-blind)
#E4BBAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d5c852;
/* rgb */ color: rgb(213, 200, 82);
/* oklch */ color: oklch(82.1% 0.138 103.0);
Tailwind
colors: {
  custom: {
    50: '#e5d887',
    500: '#d5c852',
    950: '#000000',
  },
}
SCSS
$custom: #d5c852;
$custom-light: #e5d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d5c852",
  "rgb": {
    "r": 213,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 54.046,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.82125,
    "c": 0.13833,
    "h": 103
  },
  "luminance": 0.56064
}

Semantic roles & 50–950 ramp

primary
#D5C852
secondary
#3A4391
accent
#54E444
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #D5C852

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

Preview Lab → · Contrast checker → · Palette generator →

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