#D7C151#D7C151

#D7C151 is a light, vivid yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.133 H 98.2°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#D7C151
RGBrgb(215, 193, 81)
HSLhsl(50, 63%, 58%)
HSVhsv(50, 62%, 84%)
CMYKcmyk(0%, 10.2%, 62.3%, 15.7%)
CIE-LABlab(77.98, -5.33, 57.63)
CIE-LCHlch(77.98, 57.88, 95.28°)
OKLaboklab(80.84% -0.019 0.1318)
OKLCHoklch(80.84% 0.133 98.2)
XYZxyz(48.5815, 53.1833, 15.4894)
Luminance0.5318 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C151 #5167D7
analogous
#D77E51 #D7C151 #AAD751
triadic
#D7C151 #51D7C1 #C151D7
tetradic
#D7C151 #51D77E #5167D7 #D751AA
square
#D7C151 #51D77E #5167D7 #D751AA
split-complementary
#D7C151 #51AAD7 #7E51D7
monochromatic
#8D7B20 #BFA72C #D7C151 #E2D383 #EEE4B5

Accessibility & contrast

On white

1.80
#D7C151 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.64
#D7C151 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C151
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C151#FFFFFF#000000##000000
##D7C1511.001.8011.6411.64
#FFFFFF1.801.0021.0021.00
#00000011.6421.001.001.00
##00000011.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC44
Deuteranopia (green-blind)
#D8C457
Tritanopia (blue-blind)
#E7B4A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d7c151;
/* rgb */ color: rgb(215, 193, 81);
/* oklch */ color: oklch(80.8% 0.133 98.2);
Tailwind
colors: {
  custom: {
    50: '#e6d386',
    500: '#d7c151',
    950: '#000000',
  },
}
SCSS
$custom: #d7c151;
$custom-light: #e6d386;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c151",
  "rgb": {
    "r": 215,
    "g": 193,
    "b": 81
  },
  "hsl": {
    "h": 50.149,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.8084,
    "c": 0.13311,
    "h": 98.2
  },
  "luminance": 0.53181
}

Semantic roles & 50–950 ramp

primary
#D7C151
secondary
#394893
accent
#5DE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D7C151

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

Preview Lab → · Contrast checker → · Palette generator →

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