#D158E2#D158E2

#D158E2 is a light, highly saturated purple. Relative luminance 0.260; OKLCH L 66.7% C 0.223 H 322.6°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#D158E2
RGBrgb(209, 88, 226)
HSLhsl(293, 70%, 62%)
HSVhsv(293, 61%, 89%)
CMYKcmyk(7.5%, 61.1%, 0%, 11.4%)
CIE-LABlab(58.06, 66.11, -48.67)
CIE-LCHlch(58.06, 82.09, 323.64°)
OKLaboklab(66.67% 0.1768 -0.1353)
OKLCHoklch(66.67% 0.223 322.6)
XYZxyz(43.5103, 26.0280, 74.6688)
Luminance0.2603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D158E2 #69E258
analogous
#8C58E2 #D158E2 #E258AE
triadic
#D158E2 #E2D158 #58E2D1
tetradic
#D158E2 #E28C58 #69E258 #58AEE2
square
#D158E2 #E28C58 #69E258 #58AEE2
split-complementary
#D158E2 #AEE258 #58E28C
monochromatic
#931CA3 #C125D7 #D158E2 #DF8CEB #EEC0F4

Accessibility & contrast

On white

3.38
#D158E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#D158E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D158E2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D158E2#FFFFFF#000000##000000
##D158E21.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B83E6
Deuteranopia (green-blind)
#6A90DE
Tritanopia (blue-blind)
#D46D95
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #d158e2;
/* rgb */ color: rgb(209, 88, 226);
/* oklch */ color: oklch(66.7% 0.223 322.6);
Tailwind
colors: {
  custom: {
    50: '#e28eeb',
    500: '#d158e2',
    950: '#000000',
  },
}
SCSS
$custom: #d158e2;
$custom-light: #e28eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#d158e2",
  "rgb": {
    "r": 209,
    "g": 88,
    "b": 226
  },
  "hsl": {
    "h": 292.609,
    "s": 70.408,
    "l": 61.569
  },
  "oklch": {
    "l": 0.66673,
    "c": 0.22266,
    "h": 322.6
  },
  "luminance": 0.26026
}

Semantic roles & 50–950 ramp

primary
#D158E2
secondary
#B8E5B1
accent
#D2132B
background
#FEF9FE
surface
#FCF1FD
border
#D5CBD5
text
#160D16
muted
#847E84

Preview Lab

Preview with #D158E2

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

Preview Lab → · Contrast checker → · Palette generator →

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