#D2D240#D2D240

#D2D240 is a very light, vivid yellow. Relative luminance 0.602; OKLCH L 83.8% C 0.161 H 109.4°. Best body text is #000000 at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#D2D240
RGBrgb(210, 210, 64)
HSLhsl(60, 62%, 54%)
HSVhsv(60, 70%, 82%)
CMYKcmyk(0%, 0%, 69.5%, 17.6%)
CIE-LABlab(81.93, -17.00, 68.38)
CIE-LCHlch(81.93, 70.46, 103.96°)
OKLaboklab(83.84% -0.0536 0.1519)
OKLCHoklch(83.84% 0.161 109.4)
XYZxyz(50.5521, 60.1665, 13.7999)
Luminance0.6017 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D240 #4040D2
analogous
#D28940 #D2D240 #89D240
triadic
#D2D240 #40D2D2 #D240D2
tetradic
#D2D240 #40D289 #4040D2 #D24089
square
#D2D240 #40D289 #4040D2 #D24089
split-complementary
#D2D240 #4089D2 #8940D2
monochromatic
#7B7B1D #ACAC29 #D2D240 #DEDE72 #E9E9A3

Accessibility & contrast

On white

1.61
#D2D240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.03
#D2D240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D240
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D240#FFFFFF#000000##000000
##D2D2401.001.6113.0313.03
#FFFFFF1.611.0021.0021.00
#00000013.0321.001.001.00
##00000013.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C927
Deuteranopia (green-blind)
#E5CE4B
Tritanopia (blue-blind)
#E1C5B5
Achromatopsia (no color)
#CCCCCC

Design tokens & code

CSS
--color: #d2d240;
/* rgb */ color: rgb(210, 210, 64);
/* oklch */ color: oklch(83.8% 0.161 109.4);
Tailwind
colors: {
  custom: {
    50: '#e3df7e',
    500: '#d2d240',
    950: '#000000',
  },
}
SCSS
$custom: #d2d240;
$custom-light: #e3df7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d240",
  "rgb": {
    "r": 210,
    "g": 210,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.83837,
    "c": 0.1611,
    "h": 109.4
  },
  "luminance": 0.60165
}

Semantic roles & 50–950 ramp

primary
#D2D240
secondary
#343483
accent
#43E543
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2D240

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

Preview Lab → · Contrast checker → · Palette generator →

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