#D2D962#D2D962

#D2D962 is a very light, vivid yellow. Relative luminance 0.642; OKLCH L 85.6% C 0.143 H 112.1°. Best body text is #000000 at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#D2D962
RGBrgb(210, 217, 98)
HSLhsl(64, 61%, 62%)
HSVhsv(64, 55%, 85%)
CMYKcmyk(3.2%, 0%, 54.8%, 14.9%)
CIE-LABlab(84.08, -18.28, 56.76)
CIE-LCHlch(84.08, 59.63, 107.85°)
OKLaboklab(85.64% -0.0537 0.1321)
OKLCHoklch(85.64% 0.143 112.1)
XYZxyz(53.5970, 64.2103, 21.1233)
Luminance0.6421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D962 #6962D9
analogous
#D9A462 #D2D962 #97D962
triadic
#D2D962 #62D2D9 #D962D2
tetradic
#D2D962 #62D9A4 #6962D9 #D96297
square
#D2D962 #62D9A4 #6962D9 #D96297
split-complementary
#D2D962 #6297D9 #A462D9
monochromatic
#949B26 #C3CC31 #D2D962 #E0E593 #EEF1C5

Accessibility & contrast

On white

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

On black

13.84
#D2D962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D962
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D962#FFFFFF#000000##000000
##D2D9621.001.5213.8413.84
#FFFFFF1.521.0021.0021.00
#00000013.8421.001.001.00
##00000013.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d962;
/* rgb */ color: rgb(210, 217, 98);
/* oklch */ color: oklch(85.6% 0.143 112.1);
Tailwind
colors: {
  custom: {
    50: '#e2e492',
    500: '#d2d962',
    950: '#000000',
  },
}
SCSS
$custom: #d2d962;
$custom-light: #e2e492;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d962",
  "rgb": {
    "r": 210,
    "g": 217,
    "b": 98
  },
  "hsl": {
    "h": 63.529,
    "s": 61.026,
    "l": 61.765
  },
  "oklch": {
    "l": 0.85639,
    "c": 0.14261,
    "h": 112.1
  },
  "luminance": 0.64209
}

Semantic roles & 50–950 ramp

primary
#D2D962
secondary
#46409F
accent
#1DC927
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#16150D
muted
#84847F

Preview Lab

Preview with #D2D962

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

Preview Lab → · Contrast checker → · Palette generator →

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