#D7C652#D7C652

#D7C652 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.9% C 0.137 H 101.0°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D7C652
RGBrgb(215, 198, 82)
HSLhsl(52, 62%, 58%)
HSVhsv(52, 62%, 84%)
CMYKcmyk(0%, 7.9%, 61.9%, 15.7%)
CIE-LABlab(79.30, -7.83, 58.63)
CIE-LCHlch(79.30, 59.15, 97.61°)
OKLaboklab(81.88% -0.026 0.134)
OKLCHoklch(81.88% 0.137 101)
XYZxyz(49.7434, 55.4465, 16.0630)
Luminance0.5544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C652 #5263D7
analogous
#D78352 #D7C652 #A5D752
triadic
#D7C652 #52D7C6 #C652D7
tetradic
#D7C652 #52D783 #5263D7 #D752A5
square
#D7C652 #52D783 #5263D7 #D752A5
split-complementary
#D7C652 #52A5D7 #8352D7
monochromatic
#8E8021 #C0AD2C #D7C652 #E2D684 #EEE7B5

Accessibility & contrast

On white

1.74
#D7C652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D7C652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C652
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C652#FFFFFF#000000##000000
##D7C6521.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C145
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E6B9AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c652;
/* rgb */ color: rgb(215, 198, 82);
/* oklch */ color: oklch(81.9% 0.137 101.0);
Tailwind
colors: {
  custom: {
    50: '#e6d787',
    500: '#d7c652',
    950: '#000000',
  },
}
SCSS
$custom: #d7c652;
$custom-light: #e6d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c652",
  "rgb": {
    "r": 215,
    "g": 198,
    "b": 82
  },
  "hsl": {
    "h": 52.331,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81885,
    "c": 0.1365,
    "h": 101
  },
  "luminance": 0.55444
}

Semantic roles & 50–950 ramp

primary
#D7C652
secondary
#3A4593
accent
#57E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C652

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

Preview Lab → · Contrast checker → · Palette generator →

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