#8157BC#8157BC

#8157BC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.9% C 0.154 H 300.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8157BC
RGBrgb(129, 87, 188)
HSLhsl(265, 43%, 54%)
HSVhsv(265, 54%, 74%)
CMYKcmyk(31.4%, 53.7%, 0%, 26.3%)
CIE-LABlab(45.79, 38.49, -47.09)
CIE-LCHlch(45.79, 60.82, 309.26°)
OKLaboklab(54.87% 0.0786 -0.1329)
OKLCHoklch(54.87% 0.154 300.6)
XYZxyz(21.5364, 15.1142, 49.3499)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157BC #92BC57
analogous
#5760BC #8157BC #B457BC
triadic
#8157BC #BC8157 #57BC81
tetradic
#8157BC #BC5760 #92BC57 #57BCB4
square
#8157BC #BC5760 #92BC57 #57BCB4
split-complementary
#8157BC #BCB457 #60BC57
monochromatic
#472C6D #633D99 #8157BC #A283CD #C3AFDF

Accessibility & contrast

On white

5.22
#8157BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8157BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157BC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157BC#FFFFFF#000000##FFFFFF
##8157BC1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316CBF
Deuteranopia (green-blind)
#3E6CBA
Tritanopia (blue-blind)
#756B81
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8157bc;
/* rgb */ color: rgb(129, 87, 188);
/* oklch */ color: oklch(54.9% 0.154 300.6);
Tailwind
colors: {
  custom: {
    50: '#a988d1',
    500: '#8157bc',
    950: '#000000',
  },
}
SCSS
$custom: #8157bc;
$custom-light: #a988d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8157bc",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 264.95,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54874,
    "c": 0.15444,
    "h": 300.6
  },
  "luminance": 0.15114
}

Semantic roles & 50–950 ramp

primary
#8157BC
secondary
#BBCDA2
accent
#D3559E
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8157BC

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

Preview Lab → · Contrast checker → · Palette generator →

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