#8158DF#8158DF

#8158DF is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.4% C 0.196 H 293.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8158DF
RGBrgb(129, 88, 223)
HSLhsl(258, 68%, 61%)
HSVhsv(258, 61%, 87%)
CMYKcmyk(42.2%, 60.5%, 0%, 12.5%)
CIE-LABlab(48.23, 47.15, -63.27)
CIE-LCHlch(48.23, 78.91, 306.69°)
OKLaboklab(57.37% 0.0774 -0.1804)
OKLCHoklch(57.37% 0.196 293.2)
XYZxyz(25.8587, 16.9736, 71.7115)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158DF #B6DF58
analogous
#5872DF #8158DF #C458DF
triadic
#8158DF #DF8158 #58DF81
tetradic
#8158DF #DF5872 #B6DF58 #58DFC4
square
#8158DF #DF5872 #B6DF58 #58DFC4
split-complementary
#8158DF #DFC458 #72DF58
monochromatic
#451E9E #5C28D2 #8158DF #A88BE9 #CEBFF3

Accessibility & contrast

On white

4.78
#8158DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8158DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158DF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158DF#FFFFFF#000000##FFFFFF
##8158DF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#677693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8158df;
/* rgb */ color: rgb(129, 88, 223);
/* oklch */ color: oklch(57.4% 0.196 293.2);
Tailwind
colors: {
  custom: {
    50: '#ac89ea',
    500: '#8158df',
    950: '#000000',
  },
}
SCSS
$custom: #8158df;
$custom-light: #ac89ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8158df",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 223
  },
  "hsl": {
    "h": 258.222,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57374,
    "c": 0.19633,
    "h": 293.2
  },
  "luminance": 0.16974
}

Semantic roles & 50–950 ramp

primary
#8158DF
secondary
#D3E3B0
accent
#D01697
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8158DF

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

Preview Lab → · Contrast checker → · Palette generator →

#8158DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva