#D7C651#D7C651

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

Color values

HEX#D7C651
RGBrgb(215, 198, 81)
HSLhsl(52, 63%, 58%)
HSVhsv(52, 62%, 84%)
CMYKcmyk(0%, 7.9%, 62.3%, 15.7%)
CIE-LABlab(79.29, -7.90, 59.05)
CIE-LCHlch(79.29, 59.58, 97.62°)
OKLaboklab(81.88% -0.0263 0.1348)
OKLCHoklch(81.88% 0.137 101.1)
XYZxyz(49.7056, 55.4314, 15.8641)
Luminance0.5543 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C651 #5162D7
analogous
#D78351 #D7C651 #A5D751
triadic
#D7C651 #51D7C6 #C651D7
tetradic
#D7C651 #51D783 #5162D7 #D751A5
square
#D7C651 #51D783 #5162D7 #D751A5
split-complementary
#D7C651 #51A5D7 #8351D7
monochromatic
#8D7F20 #BFAC2C #D7C651 #E2D683 #EEE7B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D7C651#FFFFFF#000000##000000
##D7C6511.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)
#D7C043
Deuteranopia (green-blind)
#DCC757
Tritanopia (blue-blind)
#E6B9AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d7c651;
/* rgb */ color: rgb(215, 198, 81);
/* oklch */ color: oklch(81.9% 0.137 101.1);
Tailwind
colors: {
  custom: {
    50: '#e6d787',
    500: '#d7c651',
    950: '#000000',
  },
}
SCSS
$custom: #d7c651;
$custom-light: #e6d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c651",
  "rgb": {
    "r": 215,
    "g": 198,
    "b": 81
  },
  "hsl": {
    "h": 52.388,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81876,
    "c": 0.13731,
    "h": 101.1
  },
  "luminance": 0.55429
}

Semantic roles & 50–950 ramp

primary
#D7C651
secondary
#394593
accent
#57E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C651

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

Preview Lab → · Contrast checker → · Palette generator →

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