#8157BB#8157BB

#8157BB is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.8% C 0.153 H 300.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8157BB
RGBrgb(129, 87, 187)
HSLhsl(265, 42%, 54%)
HSVhsv(265, 53%, 73%)
CMYKcmyk(31%, 53.5%, 0%, 26.7%)
CIE-LABlab(45.73, 38.23, -46.61)
CIE-LCHlch(45.73, 60.28, 309.36°)
OKLaboklab(54.81% 0.0786 -0.1315)
OKLCHoklch(54.81% 0.153 300.9)
XYZxyz(21.4290, 15.0713, 48.7842)
Luminance0.1507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157BB #91BB57
analogous
#575FBB #8157BB #B357BB
triadic
#8157BB #BB8157 #57BB81
tetradic
#8157BB #BB575F #91BB57 #57BBB3
square
#8157BB #BB575F #91BB57 #57BBB3
split-complementary
#8157BB #BBB357 #5FBB57
monochromatic
#472C6C #633D97 #8157BB #A283CD #C2AEDE

Accessibility & contrast

On white

5.23
#8157BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8157BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157BB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157BB#FFFFFF#000000##FFFFFF
##8157BB1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326CBE
Deuteranopia (green-blind)
#3F6CB9
Tritanopia (blue-blind)
#756A81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8157bb;
/* rgb */ color: rgb(129, 87, 187);
/* oklch */ color: oklch(54.8% 0.153 300.9);
Tailwind
colors: {
  custom: {
    50: '#a988d0',
    500: '#8157bb',
    950: '#000000',
  },
}
SCSS
$custom: #8157bb;
$custom-light: #a988d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8157bb",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 265.2,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54812,
    "c": 0.15318,
    "h": 300.9
  },
  "luminance": 0.15071
}

Semantic roles & 50–950 ramp

primary
#8157BB
secondary
#BACCA2
accent
#D2569E
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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