#D7C751#D7C751

#D7C751 is a very light, vivid yellow. Relative luminance 0.559; OKLCH L 82.1% C 0.138 H 101.6°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D7C751
RGBrgb(215, 199, 81)
HSLhsl(53, 63%, 58%)
HSVhsv(53, 62%, 84%)
CMYKcmyk(0%, 7.4%, 62.3%, 15.7%)
CIE-LABlab(79.55, -8.41, 59.33)
CIE-LCHlch(79.55, 59.93, 98.06°)
OKLaboklab(82.08% -0.0278 0.1354)
OKLCHoklch(82.08% 0.138 101.6)
XYZxyz(49.9349, 55.8900, 15.9405)
Luminance0.5589 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C751 #5161D7
analogous
#D78451 #D7C751 #A4D751
triadic
#D7C751 #51D7C7 #C751D7
tetradic
#D7C751 #51D784 #5161D7 #D751A4
square
#D7C751 #51D784 #5161D7 #D751A4
split-complementary
#D7C751 #51A4D7 #8451D7
monochromatic
#8D8020 #BFAD2C #D7C751 #E2D783 #EEE7B5

Accessibility & contrast

On white

1.72
#D7C751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#D7C751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C751
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C751#FFFFFF#000000##000000
##D7C7511.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DDC857
Tritanopia (blue-blind)
#E6BAAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d7c751;
/* rgb */ color: rgb(215, 199, 81);
/* oklch */ color: oklch(82.1% 0.138 101.6);
Tailwind
colors: {
  custom: {
    50: '#e6d787',
    500: '#d7c751',
    950: '#000000',
  },
}
SCSS
$custom: #d7c751;
$custom-light: #e6d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c751",
  "rgb": {
    "r": 215,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 52.836,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.82084,
    "c": 0.13818,
    "h": 101.6
  },
  "luminance": 0.55888
}

Semantic roles & 50–950 ramp

primary
#D7C751
secondary
#394493
accent
#56E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C751

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

Preview Lab → · Contrast checker → · Palette generator →

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