#D4D862#D4D862

#D4D862 is a very light, vivid yellow. Relative luminance 0.640; OKLCH L 85.6% C 0.141 H 110.8°. Best body text is #000000 at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#D4D862
RGBrgb(212, 216, 98)
HSLhsl(62, 60%, 62%)
HSVhsv(62, 55%, 85%)
CMYKcmyk(1.9%, 0%, 54.6%, 15.3%)
CIE-LABlab(83.96, -16.97, 56.68)
CIE-LCHlch(83.96, 59.16, 106.67°)
OKLaboklab(85.59% -0.0501 0.1319)
OKLCHoklch(85.59% 0.141 110.8)
XYZxyz(53.9132, 63.9918, 21.0645)
Luminance0.6399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4D862 #6662D8
analogous
#D8A162 #D4D862 #99D862
triadic
#D4D862 #62D4D8 #D862D4
tetradic
#D4D862 #62D8A1 #6662D8 #D86299
square
#D4D862 #62D8A1 #6662D8 #D86299
split-complementary
#D4D862 #6299D8 #A162D8
monochromatic
#969926 #C5CA32 #D4D862 #E1E493 #EFF0C4

Accessibility & contrast

On white

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

On black

13.80
#D4D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4D862
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4D862#FFFFFF#000000##000000
##D4D8621.001.5213.8013.80
#FFFFFF1.521.0021.0021.00
#00000013.8021.001.001.00
##00000013.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4d862;
/* rgb */ color: rgb(212, 216, 98);
/* oklch */ color: oklch(85.6% 0.141 110.8);
Tailwind
colors: {
  custom: {
    50: '#e4e392',
    500: '#d4d862',
    950: '#000000',
  },
}
SCSS
$custom: #d4d862;
$custom-light: #e4e392;
$custom-dark: #000000;
JSON
{
  "hex": "#d4d862",
  "rgb": {
    "r": 212,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 62.034,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85586,
    "c": 0.14109,
    "h": 110.8
  },
  "luminance": 0.63991
}

Semantic roles & 50–950 ramp

primary
#D4D862
secondary
#43409E
accent
#1EC823
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D4D862

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

Preview Lab → · Contrast checker → · Palette generator →

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