#D5D862#D5D862

#D5D862 is a very light, vivid yellow. Relative luminance 0.641; OKLCH L 85.7% C 0.141 H 110.4°. Best body text is #000000 at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#D5D862
RGBrgb(213, 216, 98)
HSLhsl(62, 60%, 62%)
HSVhsv(62, 55%, 85%)
CMYKcmyk(1.4%, 0%, 54.6%, 15.3%)
CIE-LABlab(84.04, -16.57, 56.78)
CIE-LCHlch(84.04, 59.15, 106.27°)
OKLaboklab(85.67% -0.0491 0.1321)
OKLCHoklch(85.67% 0.141 110.4)
XYZxyz(54.2024, 64.1410, 21.0781)
Luminance0.6414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D862 #6562D8
analogous
#D8A062 #D5D862 #9AD862
triadic
#D5D862 #62D5D8 #D862D5
tetradic
#D5D862 #62D8A0 #6562D8 #D8629A
square
#D5D862 #62D8A0 #6562D8 #D8629A
split-complementary
#D5D862 #629AD8 #A062D8
monochromatic
#979926 #C7CA32 #D5D862 #E2E493 #EFF0C4

Accessibility & contrast

On white

1.52
#D5D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.83
#D5D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D862
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D862#FFFFFF#000000##000000
##D5D8621.001.5213.8313.83
#FFFFFF1.521.0021.0021.00
#00000013.8321.001.001.00
##00000013.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7D056
Deuteranopia (green-blind)
#E8D369
Tritanopia (blue-blind)
#E2CCBE
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d5d862;
/* rgb */ color: rgb(213, 216, 98);
/* oklch */ color: oklch(85.7% 0.141 110.4);
Tailwind
colors: {
  custom: {
    50: '#e4e392',
    500: '#d5d862',
    950: '#000000',
  },
}
SCSS
$custom: #d5d862;
$custom-light: #e4e392;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d862",
  "rgb": {
    "r": 213,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 61.525,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85667,
    "c": 0.14091,
    "h": 110.4
  },
  "luminance": 0.6414
}

Semantic roles & 50–950 ramp

primary
#D5D862
secondary
#43409E
accent
#1EC822
background
#FEFEFC
surface
#FDFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D5D862

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

Preview Lab → · Contrast checker → · Palette generator →

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