#8158EA#8158EA

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

Color values

HEX#8158EA
RGBrgb(129, 88, 234)
HSLhsl(257, 78%, 63%)
HSVhsv(257, 62%, 92%)
CMYKcmyk(44.9%, 62.4%, 0%, 8.2%)
CIE-LABlab(48.99, 50.13, -68.25)
CIE-LCHlch(48.99, 84.68, 306.30°)
OKLaboklab(58.17% 0.0766 -0.1951)
OKLCHoklch(58.17% 0.21 291.4)
XYZxyz(27.3901, 17.5862, 79.7773)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158EA #C1EA58
analogous
#5878EA #8158EA #CA58EA
triadic
#8158EA #EA8158 #58EA81
tetradic
#8158EA #EA5878 #C1EA58 #58EACA
square
#8158EA #EA5878 #C1EA58 #58EACA
split-complementary
#8158EA #EACA58 #78EA58
monochromatic
#4216B1 #5822E3 #8158EA #AA8EF1 #D3C5F8

Accessibility & contrast

On white

4.65
#8158EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#8158EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8158EA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158EA#FFFFFF#000000##FFFFFF
##8158EA1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#627A99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8158ea;
/* rgb */ color: rgb(129, 88, 234);
/* oklch */ color: oklch(58.2% 0.210 291.4);
Tailwind
colors: {
  custom: {
    50: '#ad89f2',
    500: '#8158ea',
    950: '#000000',
  },
}
SCSS
$custom: #8158ea;
$custom-light: #ad89f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8158ea",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 234
  },
  "hsl": {
    "h": 256.849,
    "s": 77.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58171,
    "c": 0.20959,
    "h": 291.4
  },
  "luminance": 0.17587
}

Semantic roles & 50–950 ramp

primary
#8158EA
secondary
#DAE9B5
accent
#DA0CA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8158EA

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

Preview Lab → · Contrast checker → · Palette generator →

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