#D7C462#D7C462

#D7C462 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.6% C 0.121 H 98.5°. Best body text is #000000 at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#D7C462
RGBrgb(215, 196, 98)
HSLhsl(50, 59%, 61%)
HSVhsv(50, 54%, 84%)
CMYKcmyk(0%, 8.8%, 54.4%, 15.7%)
CIE-LABlab(78.93, -5.64, 50.94)
CIE-LCHlch(78.93, 51.25, 96.32°)
OKLaboklab(81.65% -0.0179 0.1195)
OKLCHoklch(81.65% 0.121 98.5)
XYZxyz(49.9706, 54.8108, 19.5003)
Luminance0.5481 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C462 #6275D7
analogous
#D78A62 #D7C462 #B0D762
triadic
#D7C462 #62D7C4 #C462D7
tetradic
#D7C462 #62D78A #6275D7 #D762B0
square
#D7C462 #62D78A #6275D7 #D762B0
split-complementary
#D7C462 #62B0D7 #8A62D7
monochromatic
#988627 #C9B033 #D7C462 #E3D693 #F0E9C4

Accessibility & contrast

On white

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

On black

11.96
#D7C462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C462
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C462#FFFFFF#000000##000000
##D7C4621.001.7611.9611.96
#FFFFFF1.761.0021.0021.00
#00000011.9621.001.001.00
##00000011.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF59
Deuteranopia (green-blind)
#D9C666
Tritanopia (blue-blind)
#E6B8AE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d7c462;
/* rgb */ color: rgb(215, 196, 98);
/* oklch */ color: oklch(81.6% 0.121 98.5);
Tailwind
colors: {
  custom: {
    50: '#e6d591',
    500: '#d7c462',
    950: '#000000',
  },
}
SCSS
$custom: #d7c462;
$custom-light: #e6d591;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c462",
  "rgb": {
    "r": 215,
    "g": 196,
    "b": 98
  },
  "hsl": {
    "h": 50.256,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.81646,
    "c": 0.1208,
    "h": 98.5
  },
  "luminance": 0.54809
}

Semantic roles & 50–950 ramp

primary
#D7C462
secondary
#41509D
accent
#3AC71E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C462

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

Preview Lab → · Contrast checker → · Palette generator →

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