#D7C451#D7C451

#D7C451 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.5% C 0.136 H 99.9°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#D7C451
RGBrgb(215, 196, 81)
HSLhsl(51, 63%, 58%)
HSVhsv(51, 62%, 84%)
CMYKcmyk(0%, 8.8%, 62.3%, 15.7%)
CIE-LABlab(78.77, -6.87, 58.48)
CIE-LCHlch(78.77, 58.89, 96.70°)
OKLaboklab(81.46% -0.0234 0.1336)
OKLCHoklch(81.46% 0.136 99.9)
XYZxyz(49.2515, 54.5231, 15.7127)
Luminance0.5452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C451 #5164D7
analogous
#D78151 #D7C451 #A7D751
triadic
#D7C451 #51D7C4 #C451D7
tetradic
#D7C451 #51D781 #5164D7 #D751A7
square
#D7C451 #51D781 #5164D7 #D751A7
split-complementary
#D7C451 #51A7D7 #8151D7
monochromatic
#8D7E20 #BFAA2C #D7C451 #E2D583 #EEE6B5

Accessibility & contrast

On white

1.76
#D7C451 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#D7C451 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C451
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C451#FFFFFF#000000##000000
##D7C4511.001.7611.9011.90
#FFFFFF1.761.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BF44
Deuteranopia (green-blind)
#DBC657
Tritanopia (blue-blind)
#E7B7AB
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d7c451;
/* rgb */ color: rgb(215, 196, 81);
/* oklch */ color: oklch(81.5% 0.136 99.9);
Tailwind
colors: {
  custom: {
    50: '#e6d587',
    500: '#d7c451',
    950: '#000000',
  },
}
SCSS
$custom: #d7c451;
$custom-light: #e6d587;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c451",
  "rgb": {
    "r": 215,
    "g": 196,
    "b": 81
  },
  "hsl": {
    "h": 51.493,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81461,
    "c": 0.13559,
    "h": 99.9
  },
  "luminance": 0.54521
}

Semantic roles & 50–950 ramp

primary
#D7C451
secondary
#394693
accent
#59E642
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D7C451

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

Preview Lab → · Contrast checker → · Palette generator →

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