#D2D540#D2D540

#D2D540 is a very light, vivid yellow. Relative luminance 0.617; OKLCH L 84.5% C 0.164 H 110.6°. Best body text is #000000 at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#D2D540
RGBrgb(210, 213, 64)
HSLhsl(61, 64%, 54%)
HSVhsv(61, 70%, 84%)
CMYKcmyk(1.4%, 0%, 70%, 16.5%)
CIE-LABlab(82.73, -18.48, 69.17)
CIE-LCHlch(82.73, 71.59, 104.96°)
OKLaboklab(84.48% -0.0577 0.1536)
OKLCHoklch(84.48% 0.164 110.6)
XYZxyz(51.2997, 61.6617, 14.0491)
Luminance0.6166 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D540 #4340D5
analogous
#D58E40 #D2D540 #88D540
triadic
#D2D540 #40D2D5 #D540D2
tetradic
#D2D540 #40D58E #4340D5 #D54088
square
#D2D540 #40D58E #4340D5 #D54088
split-complementary
#D2D540 #4088D5 #8E40D5
monochromatic
#7D7F1C #AEB127 #D2D540 #DEE072 #EAEBA4

Accessibility & contrast

On white

1.58
#D2D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.33
#D2D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D540
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D540#FFFFFF#000000##000000
##D2D5401.001.5813.3313.33
#FFFFFF1.581.0021.0021.00
#00000013.3321.001.001.00
##00000013.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6CC26
Deuteranopia (green-blind)
#E7D04B
Tritanopia (blue-blind)
#E0C8B8
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d2d540;
/* rgb */ color: rgb(210, 213, 64);
/* oklch */ color: oklch(84.5% 0.164 110.6);
Tailwind
colors: {
  custom: {
    50: '#e3e17e',
    500: '#d2d540',
    950: '#000000',
  },
}
SCSS
$custom: #d2d540;
$custom-light: #e3e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d540",
  "rgb": {
    "r": 210,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 61.208,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.8448,
    "c": 0.16408,
    "h": 110.6
  },
  "luminance": 0.6166
}

Semantic roles & 50–950 ramp

primary
#D2D540
secondary
#353386
accent
#41E744
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D540

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

Preview Lab → · Contrast checker → · Palette generator →

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