#D158F3#D158F3

#D158F3 is a light, highly saturated purple. Relative luminance 0.270; OKLCH L 67.6% C 0.238 H 318.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#D158F3
RGBrgb(209, 88, 243)
HSLhsl(287, 87%, 65%)
HSVhsv(287, 64%, 95%)
CMYKcmyk(14%, 63.8%, 0%, 4.7%)
CIE-LABlab(58.98, 69.25, -56.71)
CIE-LCHlch(58.98, 89.51, 320.68°)
OKLaboklab(67.63% 0.177 -0.1588)
OKLCHoklch(67.63% 0.238 318.1)
XYZxyz(45.9596, 27.0078, 87.5687)
Luminance0.2701 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D158F3 #7AF358
analogous
#8458F3 #D158F3 #F358C7
triadic
#D158F3 #F3D158 #58F3D1
tetradic
#D158F3 #F38458 #7AF358 #58C7F3
square
#D158F3 #F38458 #7AF358 #58C7F3
split-complementary
#D158F3 #C7F358 #58F384
monochromatic
#9B0EC3 #C11FEF #D158F3 #E191F7 #F0CAFB

Accessibility & contrast

On white

3.28
#D158F3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#D158F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D158F3
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D158F3#FFFFFF#000000##000000
##D158F31.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2286F8
Deuteranopia (green-blind)
#5F92EF
Tritanopia (blue-blind)
#D0749E
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d158f3;
/* rgb */ color: rgb(209, 88, 243);
/* oklch */ color: oklch(67.6% 0.238 318.1);
Tailwind
colors: {
  custom: {
    50: '#e38ff8',
    500: '#d158f3',
    950: '#000000',
  },
}
SCSS
$custom: #d158f3;
$custom-light: #e38ff8;
$custom-dark: #000000;
JSON
{
  "hex": "#d158f3",
  "rgb": {
    "r": 209,
    "g": 88,
    "b": 243
  },
  "hsl": {
    "h": 286.839,
    "s": 86.592,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67633,
    "c": 0.23777,
    "h": 318.1
  },
  "luminance": 0.27006
}

Semantic roles & 50–950 ramp

primary
#D158F3
secondary
#C5EEB9
accent
#E30234
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #D158F3

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

Preview Lab → · Contrast checker → · Palette generator →

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