#8158E7#8158E7

#8158E7 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.0% C 0.206 H 291.9°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8158E7
RGBrgb(129, 88, 231)
HSLhsl(257, 75%, 63%)
HSVhsv(257, 62%, 91%)
CMYKcmyk(44.2%, 61.9%, 0%, 9.4%)
CIE-LABlab(48.78, 49.31, -66.90)
CIE-LCHlch(48.78, 83.11, 306.39°)
OKLaboklab(57.95% 0.0768 -0.1911)
OKLCHoklch(57.95% 0.206 291.9)
XYZxyz(26.9628, 17.4152, 77.5267)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158E7 #BEE758
analogous
#5876E7 #8158E7 #C958E7
triadic
#8158E7 #E78158 #58E781
tetradic
#8158E7 #E75876 #BEE758 #58E7C9
square
#8158E7 #E75876 #BEE758 #58E7C9
split-complementary
#8158E7 #E7C958 #76E758
monochromatic
#4319AC #5922DF #8158E7 #A98EEF #D2C3F6

Accessibility & contrast

On white

4.68
#8158E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8158E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158E7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158E7#FFFFFF#000000##FFFFFF
##8158E71.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#637997
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8158e7;
/* rgb */ color: rgb(129, 88, 231);
/* oklch */ color: oklch(58.0% 0.206 291.9);
Tailwind
colors: {
  custom: {
    50: '#ac89ef',
    500: '#8158e7',
    950: '#000000',
  },
}
SCSS
$custom: #8158e7;
$custom-light: #ac89ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8158e7",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 231
  },
  "hsl": {
    "h": 257.203,
    "s": 74.869,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57951,
    "c": 0.206,
    "h": 291.9
  },
  "luminance": 0.17416
}

Semantic roles & 50–950 ramp

primary
#8158E7
secondary
#D8E7B3
accent
#D70E9E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158E7

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

Preview Lab → · Contrast checker → · Palette generator →

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