#8158BB#8158BB

#8158BB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.0% C 0.152 H 300.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8158BB
RGBrgb(129, 88, 187)
HSLhsl(265, 42%, 54%)
HSVhsv(265, 53%, 73%)
CMYKcmyk(31%, 52.9%, 0%, 26.7%)
CIE-LABlab(45.95, 37.66, -46.25)
CIE-LCHlch(45.95, 59.64, 309.15°)
OKLaboklab(54.98% 0.0773 -0.1305)
OKLCHoklch(54.98% 0.152 300.6)
XYZxyz(21.5105, 15.2343, 48.8113)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158BB #92BB58
analogous
#5861BB #8158BB #B358BB
triadic
#8158BB #BB8158 #58BB81
tetradic
#8158BB #BB5861 #92BB58 #58BBB3
square
#8158BB #BB5861 #92BB58 #58BBB3
split-complementary
#8158BB #BBB358 #61BB58
monochromatic
#472C6C #633E98 #8158BB #A283CD #C3AFDE

Accessibility & contrast

On white

5.19
#8158BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8158BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158BB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158BB#FFFFFF#000000##FFFFFF
##8158BB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346CBE
Deuteranopia (green-blind)
#406CB9
Tritanopia (blue-blind)
#756B81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8158bb;
/* rgb */ color: rgb(129, 88, 187);
/* oklch */ color: oklch(55.0% 0.152 300.6);
Tailwind
colors: {
  custom: {
    50: '#a988d0',
    500: '#8158bb',
    950: '#000000',
  },
}
SCSS
$custom: #8158bb;
$custom-light: #a988d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8158bb",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 264.848,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54976,
    "c": 0.15162,
    "h": 300.6
  },
  "luminance": 0.15234
}

Semantic roles & 50–950 ramp

primary
#8158BB
secondary
#BBCDA2
accent
#D2569F
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8158BB

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

Preview Lab → · Contrast checker → · Palette generator →

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