#8157C0#8157C0

#8157C0 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.1% C 0.159 H 299.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8157C0
RGBrgb(129, 87, 192)
HSLhsl(264, 45%, 55%)
HSVhsv(264, 55%, 75%)
CMYKcmyk(32.8%, 54.7%, 0%, 24.7%)
CIE-LABlab(46.03, 39.51, -49.04)
CIE-LCHlch(46.03, 62.97, 308.86°)
OKLaboklab(55.13% 0.0788 -0.1386)
OKLCHoklch(55.13% 0.159 299.6)
XYZxyz(21.9736, 15.2891, 51.6524)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157C0 #96C057
analogous
#5761C0 #8157C0 #B657C0
triadic
#8157C0 #C08157 #57C081
tetradic
#8157C0 #C05761 #96C057 #57C0B6
square
#8157C0 #C05761 #96C057 #57C0B6
split-complementary
#8157C0 #C0B657 #61C057
monochromatic
#472B72 #633B9E #8157C0 #A284D1 #C4B0E1

Accessibility & contrast

On white

5.18
#8157C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8157C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157C0
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157C0#FFFFFF#000000##FFFFFF
##8157C01.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)
#2D6DC4
Deuteranopia (green-blind)
#3A6CBE
Tritanopia (blue-blind)
#746C83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8157c0;
/* rgb */ color: rgb(129, 87, 192);
/* oklch */ color: oklch(55.1% 0.159 299.6);
Tailwind
colors: {
  custom: {
    50: '#a988d3',
    500: '#8157c0',
    950: '#000000',
  },
}
SCSS
$custom: #8157c0;
$custom-light: #a988d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8157c0",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 192
  },
  "hsl": {
    "h": 264,
    "s": 45.455,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55126,
    "c": 0.15947,
    "h": 299.6
  },
  "luminance": 0.15289
}

Semantic roles & 50–950 ramp

primary
#8157C0
secondary
#BED0A3
accent
#D553A1
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8157C0

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

Preview Lab → · Contrast checker → · Palette generator →

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