#8158EB#8158EB

#8158EB is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.2% C 0.211 H 291.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#8158EB
RGBrgb(129, 88, 235)
HSLhsl(257, 79%, 63%)
HSVhsv(257, 63%, 92%)
CMYKcmyk(45.1%, 62.6%, 0%, 7.8%)
CIE-LABlab(49.06, 50.40, -68.70)
CIE-LCHlch(49.06, 85.20, 306.27°)
OKLaboklab(58.25% 0.0765 -0.1964)
OKLCHoklch(58.25% 0.211 291.3)
XYZxyz(27.5342, 17.6438, 80.5360)
Luminance0.1764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158EB #C2EB58
analogous
#5878EB #8158EB #CB58EB
triadic
#8158EB #EB8158 #58EB81
tetradic
#8158EB #EB5878 #C2EB58 #58EBCB
square
#8158EB #EB5878 #C2EB58 #58EBCB
split-complementary
#8158EB #EBCB58 #78EB58
monochromatic
#4115B3 #5821E4 #8158EB #AA8FF2 #D3C5F8

Accessibility & contrast

On white

4.64
#8158EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8158EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8158EB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158EB#FFFFFF#000000##FFFFFF
##8158EB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#617A9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8158eb;
/* rgb */ color: rgb(129, 88, 235);
/* oklch */ color: oklch(58.2% 0.211 291.3);
Tailwind
colors: {
  custom: {
    50: '#ad89f2',
    500: '#8158eb',
    950: '#000000',
  },
}
SCSS
$custom: #8158eb;
$custom-light: #ad89f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8158eb",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 256.735,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58245,
    "c": 0.21079,
    "h": 291.3
  },
  "luminance": 0.17645
}

Semantic roles & 50–950 ramp

primary
#8158EB
secondary
#DBEAB5
accent
#DB0BA1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158EB

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

Preview Lab → · Contrast checker → · Palette generator →

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