#8157CE#8157CE

#8157CE is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.0% C 0.177 H 296.5°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8157CE
RGBrgb(129, 87, 206)
HSLhsl(261, 55%, 57%)
HSVhsv(261, 58%, 81%)
CMYKcmyk(37.4%, 57.8%, 0%, 19.2%)
CIE-LABlab(46.89, 43.16, -55.72)
CIE-LCHlch(46.89, 70.48, 307.76°)
OKLaboklab(56.04% 0.079 -0.1582)
OKLCHoklch(56.04% 0.177 296.5)
XYZxyz(23.5992, 15.9394, 60.2138)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157CE #A4CE57
analogous
#5769CE #8157CE #BC57CE
triadic
#8157CE #CE8157 #57CE81
tetradic
#8157CE #CE5769 #A4CE57 #57CEBC
square
#8157CE #CE5769 #A4CE57 #57CEBC
split-complementary
#8157CE #CEBC57 #69CE57
monochromatic
#482784 #6134B3 #8157CE #A586DC #C8B6EA

Accessibility & contrast

On white

5.01
#8157CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8157CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157CE
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157CE#FFFFFF#000000##FFFFFF
##8157CE1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1570D2
Deuteranopia (green-blind)
#296ECB
Tritanopia (blue-blind)
#6F708A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8157ce;
/* rgb */ color: rgb(129, 87, 206);
/* oklch */ color: oklch(56.0% 0.177 296.5);
Tailwind
colors: {
  custom: {
    50: '#aa88de',
    500: '#8157ce',
    950: '#000000',
  },
}
SCSS
$custom: #8157ce;
$custom-light: #aa88de;
$custom-dark: #000000;
JSON
{
  "hex": "#8157ce",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 261.176,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56042,
    "c": 0.17689,
    "h": 296.5
  },
  "luminance": 0.1594
}

Semantic roles & 50–950 ramp

primary
#8157CE
secondary
#C7D8A8
accent
#DE4AAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8157CE

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

Preview Lab → · Contrast checker → · Palette generator →

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