#D7C951#D7C951

#D7C951 is a very light, vivid yellow. Relative luminance 0.568; OKLCH L 82.5% C 0.140 H 102.7°. Best body text is #000000 at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#D7C951
RGBrgb(215, 201, 81)
HSLhsl(54, 63%, 58%)
HSVhsv(54, 62%, 84%)
CMYKcmyk(0%, 6.5%, 62.3%, 15.7%)
CIE-LABlab(80.08, -9.43, 59.90)
CIE-LCHlch(80.08, 60.64, 98.94°)
OKLaboklab(82.5% -0.0307 0.1366)
OKLCHoklch(82.5% 0.14 102.7)
XYZxyz(50.3981, 56.8164, 16.0949)
Luminance0.5681 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C951 #515FD7
analogous
#D78651 #D7C951 #A2D751
triadic
#D7C951 #51D7C9 #C951D7
tetradic
#D7C951 #51D786 #515FD7 #D751A2
square
#D7C951 #51D786 #515FD7 #D751A2
split-complementary
#D7C951 #51A2D7 #8651D7
monochromatic
#8D8220 #BFB02C #D7C951 #E2D883 #EEE8B5

Accessibility & contrast

On white

1.70
#D7C951 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.36
#D7C951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C951
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C951#FFFFFF#000000##000000
##D7C9511.001.7012.3612.36
#FFFFFF1.701.0021.0021.00
#00000012.3621.001.001.00
##00000012.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#E6BCB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7c951;
/* rgb */ color: rgb(215, 201, 81);
/* oklch */ color: oklch(82.5% 0.140 102.7);
Tailwind
colors: {
  custom: {
    50: '#e6d987',
    500: '#d7c951',
    950: '#000000',
  },
}
SCSS
$custom: #d7c951;
$custom-light: #e6d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c951",
  "rgb": {
    "r": 215,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 53.731,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.82501,
    "c": 0.13997,
    "h": 102.7
  },
  "luminance": 0.56814
}

Semantic roles & 50–950 ramp

primary
#D7C951
secondary
#394393
accent
#53E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C951

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

Preview Lab → · Contrast checker → · Palette generator →

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