#D151EB#D151EB

#D151EB is a light, highly saturated purple. Relative luminance 0.254; OKLCH L 66.4% C 0.240 H 320.4°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#D151EB
RGBrgb(209, 81, 235)
HSLhsl(290, 79%, 62%)
HSVhsv(290, 66%, 92%)
CMYKcmyk(11.1%, 65.5%, 0%, 7.8%)
CIE-LABlab(57.50, 70.64, -54.61)
CIE-LCHlch(57.50, 89.29, 322.29°)
OKLaboklab(66.42% 0.1847 -0.1526)
OKLCHoklch(66.42% 0.24 320.4)
XYZxyz(44.2305, 25.4405, 81.1619)
Luminance0.2544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D151EB #6BEB51
analogous
#8451EB #D151EB #EB51B8
triadic
#D151EB #EBD151 #51EBD1
tetradic
#D151EB #EB8451 #6BEB51 #51B8EB
square
#D151EB #EB8451 #6BEB51 #51B8EB
split-complementary
#D151EB #B8EB51 #51EB84
monochromatic
#9414AE #C21AE5 #D151EB #E088F1 #EEBFF8

Accessibility & contrast

On white

3.45
#D151EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#D151EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D151EB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D151EB#FFFFFF#000000##000000
##D151EB1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F81F0
Deuteranopia (green-blind)
#5F8FE7
Tritanopia (blue-blind)
#D26C98
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #d151eb;
/* rgb */ color: rgb(209, 81, 235);
/* oklch */ color: oklch(66.4% 0.240 320.4);
Tailwind
colors: {
  custom: {
    50: '#e38bf2',
    500: '#d151eb',
    950: '#000000',
  },
}
SCSS
$custom: #d151eb;
$custom-light: #e38bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d151eb",
  "rgb": {
    "r": 209,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 289.87,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.66424,
    "c": 0.2396,
    "h": 320.4
  },
  "luminance": 0.25438
}

Semantic roles & 50–950 ramp

primary
#D151EB
secondary
#B9E8B0
accent
#DC0A2D
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160D17
muted
#847D85

Preview Lab

Preview with #D151EB

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

Preview Lab → · Contrast checker → · Palette generator →

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