#D2D742#D2D742

#D2D742 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 84.9% C 0.165 H 111.3°. Best body text is #000000 at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#D2D742
RGBrgb(210, 215, 66)
HSLhsl(62, 65%, 55%)
HSVhsv(62, 69%, 84%)
CMYKcmyk(2.3%, 0%, 69.3%, 15.7%)
CIE-LABlab(83.28, -19.36, 68.99)
CIE-LCHlch(83.28, 71.66, 105.68°)
OKLaboklab(84.92% -0.06 0.1536)
OKLCHoklch(84.92% 0.165 111.3)
XYZxyz(51.8638, 62.6972, 14.5229)
Luminance0.6270 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D742 #4742D7
analogous
#D79142 #D2D742 #88D742
triadic
#D2D742 #42D2D7 #D742D2
tetradic
#D2D742 #42D791 #4742D7 #D74288
square
#D2D742 #42D791 #4742D7 #D74288
split-complementary
#D2D742 #4288D7 #9142D7
monochromatic
#7F831C #B1B526 #D2D742 #DEE275 #EAECA7

Accessibility & contrast

On white

1.55
#D2D742 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.54
#D2D742 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D742
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D742#FFFFFF#000000##000000
##D2D7421.001.5513.5413.54
#FFFFFF1.551.0021.0021.00
#00000013.5421.001.001.00
##00000013.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E7CD29
Deuteranopia (green-blind)
#E8D14D
Tritanopia (blue-blind)
#E0CABA
Achromatopsia (no color)
#CFCFCF

Design tokens & code

CSS
--color: #d2d742;
/* rgb */ color: rgb(210, 215, 66);
/* oklch */ color: oklch(84.9% 0.165 111.3);
Tailwind
colors: {
  custom: {
    50: '#e3e380',
    500: '#d2d742',
    950: '#000000',
  },
}
SCSS
$custom: #d2d742;
$custom-light: #e3e380;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d742",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 66
  },
  "hsl": {
    "h": 62.013,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84923,
    "c": 0.16487,
    "h": 111.3
  },
  "luminance": 0.62696
}

Semantic roles & 50–950 ramp

primary
#D2D742
secondary
#36348A
accent
#40E845
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D742

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

Preview Lab → · Contrast checker → · Palette generator →

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