#8157BF#8157BF

#8157BF is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.158 H 299.9°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8157BF
RGBrgb(129, 87, 191)
HSLhsl(264, 45%, 55%)
HSVhsv(264, 54%, 75%)
CMYKcmyk(32.5%, 54.5%, 0%, 25.1%)
CIE-LABlab(45.97, 39.25, -48.55)
CIE-LCHlch(45.97, 62.44, 308.96°)
OKLaboklab(55.06% 0.0788 -0.1372)
OKLCHoklch(55.06% 0.158 299.9)
XYZxyz(21.8632, 15.2449, 51.0708)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157BF #95BF57
analogous
#5761BF #8157BF #B557BF
triadic
#8157BF #BF8157 #57BF81
tetradic
#8157BF #BF5761 #95BF57 #57BFB5
square
#8157BF #BF5761 #95BF57 #57BFB5
split-complementary
#8157BF #BFB557 #61BF57
monochromatic
#472B71 #633C9D #8157BF #A283D0 #C3B0E1

Accessibility & contrast

On white

5.19
#8157BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8157BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157BF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157BF#FFFFFF#000000##FFFFFF
##8157BF1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6DC3
Deuteranopia (green-blind)
#3B6CBD
Tritanopia (blue-blind)
#746B83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8157bf;
/* rgb */ color: rgb(129, 87, 191);
/* oklch */ color: oklch(55.1% 0.158 299.9);
Tailwind
colors: {
  custom: {
    50: '#a988d3',
    500: '#8157bf',
    950: '#000000',
  },
}
SCSS
$custom: #8157bf;
$custom-light: #a988d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8157bf",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 264.231,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55062,
    "c": 0.15821,
    "h": 299.9
  },
  "luminance": 0.15245
}

Semantic roles & 50–950 ramp

primary
#8157BF
secondary
#BDCFA3
accent
#D553A0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8157BF

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

Preview Lab → · Contrast checker → · Palette generator →

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