#8158BF#8158BF

#8158BF is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.2% C 0.157 H 299.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8158BF
RGBrgb(129, 88, 191)
HSLhsl(264, 45%, 55%)
HSVhsv(264, 54%, 75%)
CMYKcmyk(32.5%, 53.9%, 0%, 25.1%)
CIE-LABlab(46.19, 38.69, -48.20)
CIE-LCHlch(46.19, 61.81, 308.75°)
OKLaboklab(55.23% 0.0775 -0.1362)
OKLCHoklch(55.23% 0.157 299.6)
XYZxyz(21.9447, 15.4080, 51.0980)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158BF #96BF58
analogous
#5863BF #8158BF #B458BF
triadic
#8158BF #BF8158 #58BF81
tetradic
#8158BF #BF5863 #96BF58 #58BFB4
square
#8158BF #BF5863 #96BF58 #58BFB4
split-complementary
#8158BF #BFB458 #63BF58
monochromatic
#472B71 #633C9D #8158BF #A284D0 #C4B0E1

Accessibility & contrast

On white

5.15
#8158BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8158BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158BF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158BF#FFFFFF#000000##FFFFFF
##8158BF1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306DC2
Deuteranopia (green-blind)
#3C6DBD
Tritanopia (blue-blind)
#746C83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8158bf;
/* rgb */ color: rgb(129, 88, 191);
/* oklch */ color: oklch(55.2% 0.157 299.6);
Tailwind
colors: {
  custom: {
    50: '#a988d3',
    500: '#8158bf',
    950: '#000000',
  },
}
SCSS
$custom: #8158bf;
$custom-light: #a988d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8158bf",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 263.883,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55225,
    "c": 0.15666,
    "h": 299.6
  },
  "luminance": 0.15408
}

Semantic roles & 50–950 ramp

primary
#8158BF
secondary
#BECFA4
accent
#D454A1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8158BF

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

Preview Lab → · Contrast checker → · Palette generator →

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