#D7C352#D7C352

#D7C352 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.3% C 0.134 H 99.3°. Best body text is #000000 at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#D7C352
RGBrgb(215, 195, 82)
HSLhsl(51, 62%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 9.3%, 61.9%, 15.7%)
CIE-LABlab(78.51, -6.29, 57.77)
CIE-LCHlch(78.51, 58.12, 96.21°)
OKLaboklab(81.26% -0.0216 0.1322)
OKLCHoklch(81.26% 0.134 99.3)
XYZxyz(49.0644, 54.0886, 15.8367)
Luminance0.5409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C352 #5266D7
analogous
#D78052 #D7C352 #A9D752
triadic
#D7C352 #52D7C3 #C352D7
tetradic
#D7C352 #52D780 #5266D7 #D752A9
square
#D7C352 #52D780 #5266D7 #D752A9
split-complementary
#D7C352 #52A9D7 #8052D7
monochromatic
#8E7D21 #C0A92C #D7C352 #E2D484 #EEE5B5

Accessibility & contrast

On white

1.78
#D7C352 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.82
#D7C352 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C352
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C352#FFFFFF#000000##000000
##D7C3521.001.7811.8211.82
#FFFFFF1.781.0021.0021.00
#00000011.8221.001.001.00
##00000011.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE45
Deuteranopia (green-blind)
#DAC558
Tritanopia (blue-blind)
#E7B6AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c352;
/* rgb */ color: rgb(215, 195, 82);
/* oklch */ color: oklch(81.3% 0.134 99.3);
Tailwind
colors: {
  custom: {
    50: '#e6d487',
    500: '#d7c352',
    950: '#000000',
  },
}
SCSS
$custom: #d7c352;
$custom-light: #e6d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c352",
  "rgb": {
    "r": 215,
    "g": 195,
    "b": 82
  },
  "hsl": {
    "h": 50.977,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81263,
    "c": 0.13395,
    "h": 99.3
  },
  "luminance": 0.54086
}

Semantic roles & 50–950 ramp

primary
#D7C352
secondary
#3A4793
accent
#5BE642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C352

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

Preview Lab → · Contrast checker → · Palette generator →

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