#8158CB#8158CB

#8158CB is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.0% C 0.172 H 296.9°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8158CB
RGBrgb(129, 88, 203)
HSLhsl(261, 53%, 57%)
HSVhsv(261, 57%, 80%)
CMYKcmyk(36.5%, 56.7%, 0%, 20.4%)
CIE-LABlab(46.92, 41.81, -53.96)
CIE-LCHlch(46.92, 68.26, 307.77°)
OKLaboklab(56% 0.0778 -0.1531)
OKLCHoklch(56% 0.172 296.9)
XYZxyz(23.3197, 15.9580, 58.3399)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158CB #A2CB58
analogous
#5869CB #8158CB #BA58CB
triadic
#8158CB #CB8158 #58CB81
tetradic
#8158CB #CB5869 #A2CB58 #58CBBA
square
#8158CB #CB5869 #A2CB58 #58CBBA
split-complementary
#8158CB #CBBA58 #69CB58
monochromatic
#482881 #6237AF #8158CB #A487DA #C7B5E8

Accessibility & contrast

On white

5.01
#8158CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8158CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158CB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158CB#FFFFFF#000000##FFFFFF
##8158CB1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F70CF
Deuteranopia (green-blind)
#2F6EC8
Tritanopia (blue-blind)
#707089
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8158cb;
/* rgb */ color: rgb(129, 88, 203);
/* oklch */ color: oklch(56.0% 0.172 296.9);
Tailwind
colors: {
  custom: {
    50: '#aa88db',
    500: '#8158cb',
    950: '#000000',
  },
}
SCSS
$custom: #8158cb;
$custom-light: #aa88db;
$custom-dark: #000000;
JSON
{
  "hex": "#8158cb",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 261.391,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56,
    "c": 0.17171,
    "h": 296.9
  },
  "luminance": 0.15958
}

Semantic roles & 50–950 ramp

primary
#8158CB
secondary
#C6D7A8
accent
#DC4CA9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8158CB

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

Preview Lab → · Contrast checker → · Palette generator →

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