#D2E240#D2E240

#D2E240 is a very light, vivid yellow. Relative luminance 0.685; OKLCH L 87.3% C 0.177 H 115.1°. Best body text is #000000 at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#D2E240
RGBrgb(210, 226, 64)
HSLhsl(66, 74%, 57%)
HSVhsv(66, 72%, 89%)
CMYKcmyk(7.1%, 0%, 71.7%, 11.4%)
CIE-LABlab(86.24, -24.78, 72.56)
CIE-LCHlch(86.24, 76.68, 108.86°)
OKLaboklab(87.29% -0.0753 0.1608)
OKLCHoklch(87.29% 0.178 115.1)
XYZxyz(54.7016, 68.4655, 15.1830)
Luminance0.6846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2E240 #5040E2
analogous
#E2A140 #D2E240 #81E240
triadic
#D2E240 #40D2E2 #E240D2
tetradic
#D2E240 #40E2A1 #5040E2 #E24081
square
#D2E240 #40E2A1 #5040E2 #E24081
split-complementary
#D2E240 #4081E2 #A140E2
monochromatic
#859216 #B6C71E #D2E240 #DFEA75 #EBF2AA

Accessibility & contrast

On white

1.43
#D2E240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.69
#D2E240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2E240
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2E240#FFFFFF#000000##000000
##D2E2401.001.4314.6914.69
#FFFFFF1.431.0021.0021.00
#00000014.6921.001.001.00
##00000014.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2D721
Deuteranopia (green-blind)
#F1D94D
Tritanopia (blue-blind)
#DFD5C3
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #d2e240;
/* rgb */ color: rgb(210, 226, 64);
/* oklch */ color: oklch(87.3% 0.177 115.1);
Tailwind
colors: {
  custom: {
    50: '#e3eb80',
    500: '#d2e240',
    950: '#000000',
  },
}
SCSS
$custom: #d2e240;
$custom-light: #e3eb80;
$custom-dark: #000000;
JSON
{
  "hex": "#d2e240",
  "rgb": {
    "r": 210,
    "g": 226,
    "b": 64
  },
  "hsl": {
    "h": 65.926,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.87287,
    "c": 0.1775,
    "h": 115.1
  },
  "luminance": 0.68465
}

Semantic roles & 50–950 ramp

primary
#D2E240
secondary
#3A3096
accent
#38F04A
background
#FEFEFB
surface
#FDFDF2
border
#D5D5CC
text
#16160B
muted
#84847E

Preview Lab

Preview with #D2E240

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

Preview Lab → · Contrast checker → · Palette generator →

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