#D7C962#D7C962

#D7C962 is a very light, vivid yellow. Relative luminance 0.571; OKLCH L 82.7% C 0.125 H 101.6°. Best body text is #000000 at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#D7C962
RGBrgb(215, 201, 98)
HSLhsl(53, 59%, 61%)
HSVhsv(53, 54%, 84%)
CMYKcmyk(0%, 6.5%, 54.4%, 15.7%)
CIE-LABlab(80.24, -8.21, 52.46)
CIE-LCHlch(80.24, 53.10, 98.89°)
OKLaboklab(82.68% -0.0253 0.1228)
OKLCHoklch(82.68% 0.125 101.6)
XYZxyz(51.1173, 57.1041, 19.8825)
Luminance0.5710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C962 #6270D7
analogous
#D78F62 #D7C962 #ABD762
triadic
#D7C962 #62D7C9 #C962D7
tetradic
#D7C962 #62D78F #6270D7 #D762AB
square
#D7C962 #62D78F #6270D7 #D762AB
split-complementary
#D7C962 #62ABD7 #8F62D7
monochromatic
#988A27 #C9B733 #D7C962 #E3DA93 #F0EBC4

Accessibility & contrast

On white

1.69
#D7C962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.42
#D7C962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C962
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C962#FFFFFF#000000##000000
##D7C9621.001.6912.4212.42
#FFFFFF1.691.0021.0021.00
#00000012.4221.001.001.00
##00000012.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C458
Deuteranopia (green-blind)
#DDCA67
Tritanopia (blue-blind)
#E5BDB2
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d7c962;
/* rgb */ color: rgb(215, 201, 98);
/* oklch */ color: oklch(82.7% 0.125 101.6);
Tailwind
colors: {
  custom: {
    50: '#e6d992',
    500: '#d7c962',
    950: '#000000',
  },
}
SCSS
$custom: #d7c962;
$custom-light: #e6d992;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c962",
  "rgb": {
    "r": 215,
    "g": 201,
    "b": 98
  },
  "hsl": {
    "h": 52.821,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.82681,
    "c": 0.12533,
    "h": 101.6
  },
  "luminance": 0.57102
}

Semantic roles & 50–950 ramp

primary
#D7C962
secondary
#414C9D
accent
#33C71E
background
#FEFEFC
surface
#FDFBF4
border
#D5D4CE
text
#16140D
muted
#84837F

Preview Lab

Preview with #D7C962

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

Preview Lab → · Contrast checker → · Palette generator →

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