#D2D862#D2D862

#D2D862 is a very light, vivid yellow. Relative luminance 0.637; OKLCH L 85.4% C 0.141 H 111.7°. Best body text is #000000 at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#D2D862
RGBrgb(210, 216, 98)
HSLhsl(63, 60%, 62%)
HSVhsv(63, 55%, 85%)
CMYKcmyk(2.8%, 0%, 54.6%, 15.3%)
CIE-LABlab(83.81, -17.78, 56.46)
CIE-LCHlch(83.81, 59.19, 107.48°)
OKLaboklab(85.43% -0.0523 0.1315)
OKLCHoklch(85.43% 0.141 111.7)
XYZxyz(53.3400, 63.6963, 21.0377)
Luminance0.6370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D862 #6862D8
analogous
#D8A362 #D2D862 #97D862
triadic
#D2D862 #62D2D8 #D862D2
tetradic
#D2D862 #62D8A3 #6862D8 #D86297
square
#D2D862 #62D8A3 #6862D8 #D86297
split-complementary
#D2D862 #6297D8 #A362D8
monochromatic
#949926 #C3CA32 #D2D862 #E0E493 #EEF0C4

Accessibility & contrast

On white

1.53
#D2D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.74
#D2D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D862
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D862#FFFFFF#000000##000000
##D2D8621.001.5313.7413.74
#FFFFFF1.531.0021.0021.00
#00000013.7421.001.001.00
##00000013.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CF56
Deuteranopia (green-blind)
#E7D369
Tritanopia (blue-blind)
#DFCCBE
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d862;
/* rgb */ color: rgb(210, 216, 98);
/* oklch */ color: oklch(85.4% 0.141 111.7);
Tailwind
colors: {
  custom: {
    50: '#e2e392',
    500: '#d2d862',
    950: '#000000',
  },
}
SCSS
$custom: #d2d862;
$custom-light: #e2e392;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d862",
  "rgb": {
    "r": 210,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 63.051,
    "s": 60.204,
    "l": 61.569
  },
  "oklch": {
    "l": 0.85425,
    "c": 0.14148,
    "h": 111.7
  },
  "luminance": 0.63695
}

Semantic roles & 50–950 ramp

primary
#D2D862
secondary
#45409E
accent
#1EC826
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D2D862

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

Preview Lab → · Contrast checker → · Palette generator →

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