#8158EE#8158EE

#8158EE is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.5% C 0.214 H 290.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8158EE
RGBrgb(129, 88, 238)
HSLhsl(256, 82%, 64%)
HSVhsv(256, 63%, 93%)
CMYKcmyk(45.8%, 63%, 0%, 6.7%)
CIE-LABlab(49.28, 51.22, -70.04)
CIE-LCHlch(49.28, 86.77, 306.18°)
OKLaboklab(58.47% 0.0763 -0.2003)
OKLCHoklch(58.47% 0.214 290.8)
XYZxyz(27.9713, 17.8186, 82.8379)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158EE #C5EE58
analogous
#587AEE #8158EE #CC58EE
triadic
#8158EE #EE8158 #58EE81
tetradic
#8158EE #EE587A #C5EE58 #58EECC
square
#8158EE #EE587A #C5EE58 #58EECC
split-complementary
#8158EE #EECC58 #7AEE58
monochromatic
#4013B9 #5720E8 #8158EE #AB90F4 #D5C7F9

Accessibility & contrast

On white

4.60
#8158EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#8158EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8158EE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158EE#FFFFFF#000000##FFFFFF
##8158EE1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#0072EB
Tritanopia (blue-blind)
#5F7C9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8158ee;
/* rgb */ color: rgb(129, 88, 238);
/* oklch */ color: oklch(58.5% 0.214 290.8);
Tailwind
colors: {
  custom: {
    50: '#ad89f4',
    500: '#8158ee',
    950: '#000000',
  },
}
SCSS
$custom: #8158ee;
$custom-light: #ad89f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8158ee",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 238
  },
  "hsl": {
    "h": 256.4,
    "s": 81.522,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58467,
    "c": 0.21436,
    "h": 290.8
  },
  "luminance": 0.1782
}

Semantic roles & 50–950 ramp

primary
#8158EE
secondary
#DDEBB7
accent
#DE08A3
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158EE

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

Preview Lab → · Contrast checker → · Palette generator →

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