#D158F2#D158F2

#D158F2 is a light, highly saturated purple. Relative luminance 0.269; OKLCH L 67.6% C 0.237 H 318.4°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#D158F2
RGBrgb(209, 88, 242)
HSLhsl(287, 86%, 65%)
HSVhsv(287, 64%, 95%)
CMYKcmyk(13.6%, 63.6%, 0%, 5.1%)
CIE-LABlab(58.93, 69.06, -56.25)
CIE-LCHlch(58.93, 89.07, 320.84°)
OKLaboklab(67.58% 0.177 -0.1574)
OKLCHoklch(67.58% 0.237 318.4)
XYZxyz(45.8090, 26.9475, 86.7756)
Luminance0.2695 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D158F2 #79F258
analogous
#8458F2 #D158F2 #F258C6
triadic
#D158F2 #F2D158 #58F2D1
tetradic
#D158F2 #F28458 #79F258 #58C6F2
square
#D158F2 #F28458 #79F258 #58C6F2
split-complementary
#D158F2 #C6F258 #58F284
monochromatic
#9B0FC1 #C11FEE #D158F2 #E191F6 #F0CAFB

Accessibility & contrast

On white

3.29
#D158F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#D158F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D158F2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D158F2#FFFFFF#000000##000000
##D158F21.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2486F7
Deuteranopia (green-blind)
#6092EE
Tritanopia (blue-blind)
#D1739E
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d158f2;
/* rgb */ color: rgb(209, 88, 242);
/* oklch */ color: oklch(67.6% 0.237 318.4);
Tailwind
colors: {
  custom: {
    50: '#e38ff7',
    500: '#d158f2',
    950: '#000000',
  },
}
SCSS
$custom: #d158f2;
$custom-light: #e38ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#d158f2",
  "rgb": {
    "r": 209,
    "g": 88,
    "b": 242
  },
  "hsl": {
    "h": 287.143,
    "s": 85.556,
    "l": 64.706
  },
  "oklch": {
    "l": 0.67575,
    "c": 0.23687,
    "h": 318.4
  },
  "luminance": 0.26946
}

Semantic roles & 50–950 ramp

primary
#D158F2
secondary
#C4EDB8
accent
#E20333
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #D158F2

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

Preview Lab → · Contrast checker → · Palette generator →

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