#8158E8#8158E8

#8158E8 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.0% C 0.207 H 291.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8158E8
RGBrgb(129, 88, 232)
HSLhsl(257, 76%, 63%)
HSVhsv(257, 62%, 91%)
CMYKcmyk(44.4%, 62.1%, 0%, 9%)
CIE-LABlab(48.85, 49.58, -67.35)
CIE-LCHlch(48.85, 83.64, 306.36°)
OKLaboklab(58.02% 0.0768 -0.1924)
OKLCHoklch(58.02% 0.207 291.7)
XYZxyz(27.1044, 17.4719, 78.2726)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158E8 #BFE858
analogous
#5877E8 #8158E8 #C958E8
triadic
#8158E8 #E88158 #58E881
tetradic
#8158E8 #E85877 #BFE858 #58E8C9
square
#8158E8 #E85877 #BFE858 #58E8C9
split-complementary
#8158E8 #E8C958 #77E858
monochromatic
#4318AE #5822E1 #8158E8 #AA8EEF #D2C4F7

Accessibility & contrast

On white

4.67
#8158E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8158E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158E8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158E8#FFFFFF#000000##FFFFFF
##8158E81.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076ED
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#637998
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8158e8;
/* rgb */ color: rgb(129, 88, 232);
/* oklch */ color: oklch(58.0% 0.207 291.7);
Tailwind
colors: {
  custom: {
    50: '#ad89f0',
    500: '#8158e8',
    950: '#000000',
  },
}
SCSS
$custom: #8158e8;
$custom-light: #ad89f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8158e8",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 257.083,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58024,
    "c": 0.20719,
    "h": 291.7
  },
  "luminance": 0.17473
}

Semantic roles & 50–950 ramp

primary
#8158E8
secondary
#D9E8B4
accent
#D80E9E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158E8

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

Preview Lab → · Contrast checker → · Palette generator →

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