#D7C852#D7C852

#D7C852 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.3% C 0.138 H 102.1°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#D7C852
RGBrgb(215, 200, 82)
HSLhsl(53, 62%, 58%)
HSVhsv(53, 62%, 84%)
CMYKcmyk(0%, 7%, 61.9%, 15.7%)
CIE-LABlab(79.82, -8.85, 59.20)
CIE-LCHlch(79.82, 59.86, 98.50°)
OKLaboklab(82.3% -0.0289 0.1352)
OKLCHoklch(82.3% 0.138 102.1)
XYZxyz(50.2035, 56.3668, 16.2164)
Luminance0.5636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C852 #5261D7
analogous
#D78552 #D7C852 #A3D752
triadic
#D7C852 #52D7C8 #C852D7
tetradic
#D7C852 #52D785 #5261D7 #D752A3
square
#D7C852 #52D785 #5261D7 #D752A3
split-complementary
#D7C852 #52A3D7 #8552D7
monochromatic
#8E8221 #C0AF2C #D7C852 #E2D884 #EEE8B5

Accessibility & contrast

On white

1.71
#D7C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#D7C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C852
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C852#FFFFFF#000000##000000
##D7C8521.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C244
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#E6BBAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d7c852;
/* rgb */ color: rgb(215, 200, 82);
/* oklch */ color: oklch(82.3% 0.138 102.1);
Tailwind
colors: {
  custom: {
    50: '#e6d887',
    500: '#d7c852',
    950: '#000000',
  },
}
SCSS
$custom: #d7c852;
$custom-light: #e6d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c852",
  "rgb": {
    "r": 215,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 53.233,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.82302,
    "c": 0.13827,
    "h": 102.1
  },
  "luminance": 0.56365
}

Semantic roles & 50–950 ramp

primary
#D7C852
secondary
#3A4493
accent
#55E642
background
#FFFEFC
surface
#FEFBF4
border
#D6D4CE
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C852

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

Preview Lab → · Contrast checker → · Palette generator →

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