#D7C851#D7C851

#D7C851 is a very light, vivid yellow. Relative luminance 0.564; OKLCH L 82.3% C 0.139 H 102.1°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#D7C851
RGBrgb(215, 200, 81)
HSLhsl(53, 63%, 58%)
HSVhsv(53, 62%, 84%)
CMYKcmyk(0%, 7%, 62.3%, 15.7%)
CIE-LABlab(79.81, -8.92, 59.62)
CIE-LCHlch(79.81, 60.28, 98.51°)
OKLaboklab(82.29% -0.0292 0.136)
OKLCHoklch(82.29% 0.139 102.1)
XYZxyz(50.1657, 56.3517, 16.0175)
Luminance0.5635 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C851 #5160D7
analogous
#D78551 #D7C851 #A3D751
triadic
#D7C851 #51D7C8 #C851D7
tetradic
#D7C851 #51D785 #5160D7 #D751A3
square
#D7C851 #51D785 #5160D7 #D751A3
split-complementary
#D7C851 #51A3D7 #8551D7
monochromatic
#8D8120 #BFAE2C #D7C851 #E2D883 #EEE7B5

Accessibility & contrast

On white

1.71
#D7C851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#D7C851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C851
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C851#FFFFFF#000000##000000
##D7C8511.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C243
Deuteranopia (green-blind)
#DEC958
Tritanopia (blue-blind)
#E6BBAF
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d7c851;
/* rgb */ color: rgb(215, 200, 81);
/* oklch */ color: oklch(82.3% 0.139 102.1);
Tailwind
colors: {
  custom: {
    50: '#e6d887',
    500: '#d7c851',
    950: '#000000',
  },
}
SCSS
$custom: #d7c851;
$custom-light: #e6d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c851",
  "rgb": {
    "r": 215,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 53.284,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.82292,
    "c": 0.13907,
    "h": 102.1
  },
  "luminance": 0.5635
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7C851

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

Preview Lab → · Contrast checker → · Palette generator →

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