#D7C862#D7C862

#D7C862 is a very light, vivid yellow. Relative luminance 0.566; OKLCH L 82.5% C 0.124 H 101.0°. Best body text is #000000 at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#D7C862
RGBrgb(215, 200, 98)
HSLhsl(52, 59%, 61%)
HSVhsv(52, 54%, 84%)
CMYKcmyk(0%, 7%, 54.4%, 15.7%)
CIE-LABlab(79.98, -7.70, 52.16)
CIE-LCHlch(79.98, 52.72, 98.39°)
OKLaboklab(82.47% -0.0238 0.1221)
OKLCHoklch(82.47% 0.124 101)
XYZxyz(50.8849, 56.6394, 19.8050)
Luminance0.5664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D7C862 #6271D7
analogous
#D78E62 #D7C862 #ACD762
triadic
#D7C862 #62D7C8 #C862D7
tetradic
#D7C862 #62D78E #6271D7 #D762AC
square
#D7C862 #62D78E #6271D7 #D762AC
split-complementary
#D7C862 #62ACD7 #8E62D7
monochromatic
#988927 #C9B633 #D7C862 #E3D993 #F0EAC4

Accessibility & contrast

On white

1.70
#D7C862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.33
#D7C862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D7C862
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D7C862#FFFFFF#000000##000000
##D7C8621.001.7012.3312.33
#FFFFFF1.701.0021.0021.00
#00000012.3321.001.001.00
##00000012.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C358
Deuteranopia (green-blind)
#DCC967
Tritanopia (blue-blind)
#E5BCB1
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #d7c862;
/* rgb */ color: rgb(215, 200, 98);
/* oklch */ color: oklch(82.5% 0.124 101.0);
Tailwind
colors: {
  custom: {
    50: '#e6d891',
    500: '#d7c862',
    950: '#000000',
  },
}
SCSS
$custom: #d7c862;
$custom-light: #e6d891;
$custom-dark: #000000;
JSON
{
  "hex": "#d7c862",
  "rgb": {
    "r": 215,
    "g": 200,
    "b": 98
  },
  "hsl": {
    "h": 52.308,
    "s": 59.391,
    "l": 61.373
  },
  "oklch": {
    "l": 0.82474,
    "c": 0.12441,
    "h": 101
  },
  "luminance": 0.56637
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D7C862

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

Preview Lab → · Contrast checker → · Palette generator →

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