#D2D142#D2D142

#D2D142 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.6% C 0.159 H 109.0°. Best body text is #000000 at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#D2D142
RGBrgb(210, 209, 66)
HSLhsl(60, 62%, 54%)
HSVhsv(60, 69%, 82%)
CMYKcmyk(0%, 0.5%, 68.6%, 17.6%)
CIE-LABlab(81.67, -16.40, 67.40)
CIE-LCHlch(81.67, 69.37, 103.68°)
OKLaboklab(83.64% -0.0517 0.1502)
OKLCHoklch(83.64% 0.159 109)
XYZxyz(50.3639, 59.6974, 14.0230)
Luminance0.5970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D142 #4243D2
analogous
#D28942 #D2D142 #8BD242
triadic
#D2D142 #42D2D1 #D142D2
tetradic
#D2D142 #42D289 #4243D2 #D2428B
square
#D2D142 #42D289 #4243D2 #D2428B
split-complementary
#D2D142 #428BD2 #8942D2
monochromatic
#7C7B1E #ADAD29 #D2D142 #DEDD73 #EAE9A5

Accessibility & contrast

On white

1.62
#D2D142 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.94
#D2D142 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D142
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D142#FFFFFF#000000##000000
##D2D1421.001.6212.9412.94
#FFFFFF1.621.0021.0021.00
#00000012.9421.001.001.00
##00000012.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C82B
Deuteranopia (green-blind)
#E4CD4C
Tritanopia (blue-blind)
#E1C4B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d2d142;
/* rgb */ color: rgb(210, 209, 66);
/* oklch */ color: oklch(83.6% 0.159 109.0);
Tailwind
colors: {
  custom: {
    50: '#e3de7f',
    500: '#d2d142',
    950: '#000000',
  },
}
SCSS
$custom: #d2d142;
$custom-light: #e3de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d142",
  "rgb": {
    "r": 210,
    "g": 209,
    "b": 66
  },
  "hsl": {
    "h": 59.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.83637,
    "c": 0.15886,
    "h": 109
  },
  "luminance": 0.59696
}

Semantic roles & 50–950 ramp

primary
#D2D142
secondary
#343584
accent
#44E543
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D142

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

Preview Lab → · Contrast checker → · Palette generator →

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