#D2D342#D2D342

#D2D342 is a very light, vivid yellow. Relative luminance 0.607; OKLCH L 84.1% C 0.161 H 109.8°. Best body text is #000000 at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#D2D342
RGBrgb(210, 211, 66)
HSLhsl(60, 62%, 54%)
HSVhsv(60, 69%, 83%)
CMYKcmyk(0.5%, 0%, 68.7%, 17.3%)
CIE-LABlab(82.21, -17.39, 67.93)
CIE-LCHlch(82.21, 70.12, 104.36°)
OKLaboklab(84.07% -0.0545 0.1513)
OKLCHoklch(84.07% 0.161 109.8)
XYZxyz(50.8577, 60.6850, 14.1875)
Luminance0.6068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D342 #4342D3
analogous
#D38C42 #D2D342 #8AD342
triadic
#D2D342 #42D2D3 #D342D2
tetradic
#D2D342 #42D38C #4342D3 #D3428A
square
#D2D342 #42D38C #4342D3 #D3428A
split-complementary
#D2D342 #428AD3 #8C42D3
monochromatic
#7D7D1D #AEAF29 #D2D342 #DEDF74 #EAEAA5

Accessibility & contrast

On white

1.60
#D2D342 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.14
#D2D342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D342
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D342#FFFFFF#000000##000000
##D2D3421.001.6013.1413.14
#FFFFFF1.601.0021.0021.00
#00000013.1421.001.001.00
##00000013.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CA2A
Deuteranopia (green-blind)
#E5CF4C
Tritanopia (blue-blind)
#E1C6B6
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d342;
/* rgb */ color: rgb(210, 211, 66);
/* oklch */ color: oklch(84.1% 0.161 109.8);
Tailwind
colors: {
  custom: {
    50: '#e3e07f',
    500: '#d2d342',
    950: '#000000',
  },
}
SCSS
$custom: #d2d342;
$custom-light: #e3e07f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d342",
  "rgb": {
    "r": 210,
    "g": 211,
    "b": 66
  },
  "hsl": {
    "h": 60.414,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84065,
    "c": 0.16083,
    "h": 109.8
  },
  "luminance": 0.60684
}

Semantic roles & 50–950 ramp

primary
#D2D342
secondary
#353485
accent
#42E544
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D342

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

Preview Lab → · Contrast checker → · Palette generator →

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