#8157CF#8157CF

#8157CF is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.1% C 0.178 H 296.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8157CF
RGBrgb(129, 87, 207)
HSLhsl(261, 56%, 58%)
HSVhsv(261, 58%, 81%)
CMYKcmyk(37.7%, 58%, 0%, 18.8%)
CIE-LABlab(46.96, 43.43, -56.19)
CIE-LCHlch(46.96, 71.02, 307.70°)
OKLaboklab(56.11% 0.079 -0.1596)
OKLCHoklch(56.11% 0.178 296.3)
XYZxyz(23.7211, 15.9881, 60.8556)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157CF #A5CF57
analogous
#5769CF #8157CF #BD57CF
triadic
#8157CF #CF8157 #57CF81
tetradic
#8157CF #CF5769 #A5CF57 #57CFBD
square
#8157CF #CF5769 #A5CF57 #57CFBD
split-complementary
#8157CF #CFBD57 #69CF57
monochromatic
#472685 #6134B5 #8157CF #A587DD #C8B6EA

Accessibility & contrast

On white

5.00
#8157CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8157CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157CF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157CF#FFFFFF#000000##FFFFFF
##8157CF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1270D3
Deuteranopia (green-blind)
#276ECC
Tritanopia (blue-blind)
#6E718B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8157cf;
/* rgb */ color: rgb(129, 87, 207);
/* oklch */ color: oklch(56.1% 0.178 296.3);
Tailwind
colors: {
  custom: {
    50: '#aa88de',
    500: '#8157cf',
    950: '#000000',
  },
}
SCSS
$custom: #8157cf;
$custom-light: #aa88de;
$custom-dark: #000000;
JSON
{
  "hex": "#8157cf",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 261,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5611,
    "c": 0.17813,
    "h": 296.3
  },
  "luminance": 0.15989
}

Semantic roles & 50–950 ramp

primary
#8157CF
secondary
#C8D9A9
accent
#DF49AA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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