#D151E2#D151E2

#D151E2 is a light, highly saturated purple. Relative luminance 0.249; OKLCH L 65.9% C 0.232 H 322.8°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#D151E2
RGBrgb(209, 81, 226)
HSLhsl(293, 71%, 60%)
HSVhsv(293, 64%, 89%)
CMYKcmyk(7.5%, 64.2%, 0%, 11.4%)
CIE-LABlab(57.01, 69.03, -50.35)
CIE-LCHlch(57.01, 85.44, 323.89°)
OKLaboklab(65.91% 0.1848 -0.1401)
OKLCHoklch(65.91% 0.232 322.8)
XYZxyz(42.9630, 24.9335, 74.4864)
Luminance0.2493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151E2 #62E251
analogous
#8951E2 #D151E2 #E251AA
triadic
#D151E2 #E2D151 #51E2D1
tetradic
#D151E2 #E28951 #62E251 #51AAE2
square
#D151E2 #E28951 #62E251 #51AAE2
split-complementary
#D151E2 #AAE251 #51E289
monochromatic
#8F1A9E #BE23D3 #D151E2 #DF85EB #EDBAF3

Accessibility & contrast

On white

3.51
#D151E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#D151E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151E2
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151E2#FFFFFF#000000##000000
##D151E21.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F7FE6
Deuteranopia (green-blind)
#668EDE
Tritanopia (blue-blind)
#D46893
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #d151e2;
/* rgb */ color: rgb(209, 81, 226);
/* oklch */ color: oklch(65.9% 0.232 322.8);
Tailwind
colors: {
  custom: {
    50: '#e38bec',
    500: '#d151e2',
    950: '#000000',
  },
}
SCSS
$custom: #d151e2;
$custom-light: #e38bec;
$custom-dark: #000000;
JSON
{
  "hex": "#d151e2",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 292.966,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.65911,
    "c": 0.2319,
    "h": 322.8
  },
  "luminance": 0.24931
}

Semantic roles & 50–950 ramp

primary
#D151E2
secondary
#B2E3AC
accent
#D31229
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160D16
muted
#847D84

Preview Lab

Preview with #D151E2

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

Preview Lab → · Contrast checker → · Palette generator →

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