#D2E138#D2E138

#D2E138 is a very light, vivid yellow. Relative luminance 0.678; OKLCH L 87.0% C 0.181 H 114.7°. Best body text is #000000 at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#D2E138
RGBrgb(210, 225, 56)
HSLhsl(65, 74%, 55%)
HSVhsv(65, 75%, 88%)
CMYKcmyk(6.7%, 0%, 75.1%, 11.8%)
CIE-LABlab(85.93, -24.66, 74.84)
CIE-LCHlch(85.93, 78.80, 108.24°)
OKLaboklab(87.02% -0.0756 0.1642)
OKLCHoklch(87.02% 0.181 114.7)
XYZxyz(54.2190, 67.8386, 13.9786)
Luminance0.6784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2E138 #4738E1
analogous
#E19B38 #D2E138 #7EE138
triadic
#D2E138 #38D2E1 #E138D2
tetradic
#D2E138 #38E19B #4738E1 #E1387E
square
#D2E138 #38E19B #4738E1 #E1387E
split-complementary
#D2E138 #387EE1 #9B38E1
monochromatic
#7F8A15 #B1BF1D #D2E138 #DEE96D #EAF1A2

Accessibility & contrast

On white

1.44
#D2E138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.57
#D2E138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2E138
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2E138#FFFFFF#000000##000000
##D2E1381.001.4414.5714.57
#FFFFFF1.441.0021.0021.00
#00000014.5721.001.001.00
##00000014.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D609
Deuteranopia (green-blind)
#F1D847
Tritanopia (blue-blind)
#E0D4C1
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #d2e138;
/* rgb */ color: rgb(210, 225, 56);
/* oklch */ color: oklch(87.0% 0.181 114.7);
Tailwind
colors: {
  custom: {
    50: '#e4ea7c',
    500: '#d2e138',
    950: '#000000',
  },
}
SCSS
$custom: #d2e138;
$custom-light: #e4ea7c;
$custom-dark: #000000;
JSON
{
  "hex": "#d2e138",
  "rgb": {
    "r": 210,
    "g": 225,
    "b": 56
  },
  "hsl": {
    "h": 65.325,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.87023,
    "c": 0.1808,
    "h": 114.7
  },
  "luminance": 0.67838
}

Semantic roles & 50–950 ramp

primary
#D2E138
secondary
#362E8F
accent
#37F048
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16160A
muted
#85847D

Preview Lab

Preview with #D2E138

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

Preview Lab → · Contrast checker → · Palette generator →

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