#D158F7#D158F7

#D158F7 is a light, highly saturated purple. Relative luminance 0.273; OKLCH L 67.9% C 0.241 H 317.1°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#D158F7
RGBrgb(209, 88, 247)
HSLhsl(286, 91%, 66%)
HSVhsv(286, 64%, 97%)
CMYKcmyk(15.4%, 64.4%, 0%, 3.1%)
CIE-LABlab(59.21, 70.01, -58.57)
CIE-LCHlch(59.21, 91.28, 320.08°)
OKLaboklab(67.87% 0.1769 -0.1642)
OKLCHoklch(67.87% 0.241 317.1)
XYZxyz(46.5703, 27.2520, 90.7847)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D158F7 #7EF758
analogous
#8158F7 #D158F7 #F758CE
triadic
#D158F7 #F7D158 #58F7D1
tetradic
#D158F7 #F78158 #7EF758 #58CEF7
square
#D158F7 #F78158 #7EF758 #58CEF7
split-complementary
#D158F7 #CEF758 #58F781
monochromatic
#9D0ACB #C11EF4 #D158F7 #E192FA #F1CDFD

Accessibility & contrast

On white

3.26
#D158F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#D158F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D158F7
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D158F7#FFFFFF#000000##000000
##D158F71.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1887FC
Deuteranopia (green-blind)
#5C92F3
Tritanopia (blue-blind)
#CF75A0
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d158f7;
/* rgb */ color: rgb(209, 88, 247);
/* oklch */ color: oklch(67.9% 0.241 317.1);
Tailwind
colors: {
  custom: {
    50: '#e38ffa',
    500: '#d158f7',
    950: '#000000',
  },
}
SCSS
$custom: #d158f7;
$custom-light: #e38ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#d158f7",
  "rgb": {
    "r": 209,
    "g": 88,
    "b": 247
  },
  "hsl": {
    "h": 285.66,
    "s": 90.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67868,
    "c": 0.24138,
    "h": 317.1
  },
  "luminance": 0.2725
}

Semantic roles & 50–950 ramp

primary
#D158F7
secondary
#C8F0BB
accent
#E60037
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #D158F7

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

Preview Lab → · Contrast checker → · Palette generator →

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