#D7C552#D7C552

#D7C552 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.7% C 0.136 H 100.4°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#D7C552
RGBrgb(215, 197, 82)
HSLhsl(52, 62%, 58%)
HSVhsv(52, 62%, 84%)
CMYKcmyk(0%, 8.4%, 61.9%, 15.7%)
CIE-LABlab(79.04, -7.32, 58.34)
CIE-LCHlch(79.04, 58.80, 97.15°)
OKLaboklab(81.68% -0.0246 0.1334)
OKLCHoklch(81.68% 0.136 100.4)
XYZxyz(49.5155, 54.9908, 15.9871)
Luminance0.5499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C552 #5264D7
analogous
#D78252 #D7C552 #A6D752
triadic
#D7C552 #52D7C5 #C552D7
tetradic
#D7C552 #52D782 #5264D7 #D752A6
square
#D7C552 #52D782 #5264D7 #D752A6
split-complementary
#D7C552 #52A6D7 #8252D7
monochromatic
#8E7F21 #C0AC2C #D7C552 #E2D684 #EEE6B5

Accessibility & contrast

On white

1.75
#D7C552 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#D7C552 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C552
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C552#FFFFFF#000000##000000
##D7C5521.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C045
Deuteranopia (green-blind)
#DBC758
Tritanopia (blue-blind)
#E7B8AC
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c552;
/* rgb */ color: rgb(215, 197, 82);
/* oklch */ color: oklch(81.7% 0.136 100.4);
Tailwind
colors: {
  custom: {
    50: '#e6d687',
    500: '#d7c552',
    950: '#000000',
  },
}
SCSS
$custom: #d7c552;
$custom-light: #e6d687;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c552",
  "rgb": {
    "r": 215,
    "g": 197,
    "b": 82
  },
  "hsl": {
    "h": 51.88,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81678,
    "c": 0.13564,
    "h": 100.4
  },
  "luminance": 0.54989
}

Semantic roles & 50–950 ramp

primary
#D7C552
secondary
#3A4693
accent
#58E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C552

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

Preview Lab → · Contrast checker → · Palette generator →

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