#8158EC#8158EC

#8158EC is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.3% C 0.212 H 291.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8158EC
RGBrgb(129, 88, 236)
HSLhsl(257, 80%, 64%)
HSVhsv(257, 63%, 93%)
CMYKcmyk(45.3%, 62.7%, 0%, 7.5%)
CIE-LABlab(49.13, 50.67, -69.15)
CIE-LCHlch(49.13, 85.73, 306.24°)
OKLaboklab(58.32% 0.0764 -0.1977)
OKLCHoklch(58.32% 0.212 291.1)
XYZxyz(27.6791, 17.7017, 81.2990)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158EC #C3EC58
analogous
#5879EC #8158EC #CB58EC
triadic
#8158EC #EC8158 #58EC81
tetradic
#8158EC #EC5879 #C3EC58 #58ECCB
square
#8158EC #EC5879 #C3EC58 #58ECCB
split-complementary
#8158EC #ECCB58 #79EC58
monochromatic
#4115B5 #5821E6 #8158EC #AA8FF2 #D4C6F9

Accessibility & contrast

On white

4.62
#8158EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8158EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8158EC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158EC#FFFFFF#000000##FFFFFF
##8158EC1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F1
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#607B9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8158ec;
/* rgb */ color: rgb(129, 88, 236);
/* oklch */ color: oklch(58.3% 0.212 291.1);
Tailwind
colors: {
  custom: {
    50: '#ad89f3',
    500: '#8158ec',
    950: '#000000',
  },
}
SCSS
$custom: #8158ec;
$custom-light: #ad89f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8158ec",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 256.622,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58319,
    "c": 0.21198,
    "h": 291.1
  },
  "luminance": 0.17703
}

Semantic roles & 50–950 ramp

primary
#8158EC
secondary
#DCEAB6
accent
#DC0AA2
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158EC

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

Preview Lab → · Contrast checker → · Palette generator →

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