#D7C351#D7C351

#D7C351 is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.3% C 0.135 H 99.4°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#D7C351
RGBrgb(215, 195, 81)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 9.3%, 62.3%, 15.7%)
CIE-LABlab(78.50, -6.36, 58.20)
CIE-LCHlch(78.50, 58.55, 96.23°)
OKLaboklab(81.25% -0.0219 0.133)
OKLCHoklch(81.25% 0.135 99.4)
XYZxyz(49.0267, 54.0735, 15.6378)
Luminance0.5407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C351 #5165D7
analogous
#D78051 #D7C351 #A8D751
triadic
#D7C351 #51D7C3 #C351D7
tetradic
#D7C351 #51D780 #5165D7 #D751A8
square
#D7C351 #51D780 #5165D7 #D751A8
split-complementary
#D7C351 #51A8D7 #8051D7
monochromatic
#8D7D20 #BFA92C #D7C351 #E2D483 #EEE5B5

Accessibility & contrast

On white

1.78
#D7C351 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#D7C351 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C351
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C351#FFFFFF#000000##000000
##D7C3511.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE44
Deuteranopia (green-blind)
#DAC557
Tritanopia (blue-blind)
#E7B6AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d7c351;
/* rgb */ color: rgb(215, 195, 81);
/* oklch */ color: oklch(81.3% 0.135 99.4);
Tailwind
colors: {
  custom: {
    50: '#e6d486',
    500: '#d7c351',
    950: '#000000',
  },
}
SCSS
$custom: #d7c351;
$custom-light: #e6d486;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c351",
  "rgb": {
    "r": 215,
    "g": 195,
    "b": 81
  },
  "hsl": {
    "h": 51.045,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81254,
    "c": 0.13476,
    "h": 99.4
  },
  "luminance": 0.54071
}

Semantic roles & 50–950 ramp

primary
#D7C351
secondary
#394793
accent
#5BE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C351

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

Preview Lab → · Contrast checker → · Palette generator →

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