#8158BC#8158BC

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

Color values

HEX#8158BC
RGBrgb(129, 88, 188)
HSLhsl(265, 43%, 54%)
HSVhsv(265, 53%, 74%)
CMYKcmyk(31.4%, 53.2%, 0%, 26.3%)
CIE-LABlab(46.01, 37.92, -46.74)
CIE-LCHlch(46.01, 60.19, 309.05°)
OKLaboklab(55.04% 0.0773 -0.1319)
OKLCHoklch(55.04% 0.153 300.4)
XYZxyz(21.6179, 15.2773, 49.3771)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158BC #93BC58
analogous
#5861BC #8158BC #B358BC
triadic
#8158BC #BC8158 #58BC81
tetradic
#8158BC #BC5861 #93BC58 #58BCB3
square
#8158BC #BC5861 #93BC58 #58BCB3
split-complementary
#8158BC #BCB358 #61BC58
monochromatic
#472C6E #633E99 #8158BC #A284CE #C3AFDF

Accessibility & contrast

On white

5.18
#8158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8158BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158BC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158BC#FFFFFF#000000##FFFFFF
##8158BC1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336DBF
Deuteranopia (green-blind)
#3F6CBA
Tritanopia (blue-blind)
#756B81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8158bc;
/* rgb */ color: rgb(129, 88, 188);
/* oklch */ color: oklch(55.0% 0.153 300.4);
Tailwind
colors: {
  custom: {
    50: '#a988d1',
    500: '#8158bc',
    950: '#000000',
  },
}
SCSS
$custom: #8158bc;
$custom-light: #a988d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8158bc",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 264.6,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55038,
    "c": 0.15288,
    "h": 300.4
  },
  "luminance": 0.15277
}

Semantic roles & 50–950 ramp

primary
#8158BC
secondary
#BCCDA3
accent
#D3559F
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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