#8157BE#8157BE

#8157BE is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.0% C 0.157 H 300.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#8157BE
RGBrgb(129, 87, 190)
HSLhsl(264, 44%, 54%)
HSVhsv(264, 54%, 75%)
CMYKcmyk(32.1%, 54.2%, 0%, 25.5%)
CIE-LABlab(45.91, 39.00, -48.07)
CIE-LCHlch(45.91, 61.90, 309.05°)
OKLaboklab(55% 0.0787 -0.1358)
OKLCHoklch(55% 0.157 300.1)
XYZxyz(21.7535, 15.2011, 50.4933)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157BE #94BE57
analogous
#5761BE #8157BE #B557BE
triadic
#8157BE #BE8157 #57BE81
tetradic
#8157BE #BE5761 #94BE57 #57BEB5
square
#8157BE #BE5761 #94BE57 #57BEB5
split-complementary
#8157BE #BEB557 #61BE57
monochromatic
#472B6F #633C9C #8157BE #A283CF #C3AFE0

Accessibility & contrast

On white

5.20
#8157BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#8157BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157BE
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157BE#FFFFFF#000000##FFFFFF
##8157BE1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6CC1
Deuteranopia (green-blind)
#3C6CBC
Tritanopia (blue-blind)
#746B82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8157be;
/* rgb */ color: rgb(129, 87, 190);
/* oklch */ color: oklch(55.0% 0.157 300.1);
Tailwind
colors: {
  custom: {
    50: '#a988d2',
    500: '#8157be',
    950: '#000000',
  },
}
SCSS
$custom: #8157be;
$custom-light: #a988d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8157be",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 190
  },
  "hsl": {
    "h": 264.466,
    "s": 44.206,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54999,
    "c": 0.15695,
    "h": 300.1
  },
  "luminance": 0.15201
}

Semantic roles & 50–950 ramp

primary
#8157BE
secondary
#BCCEA3
accent
#D454A0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8157BE

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

Preview Lab → · Contrast checker → · Palette generator →

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