#8157E1#8157E1

#8157E1 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.4% C 0.200 H 293.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8157E1
RGBrgb(129, 87, 225)
HSLhsl(258, 70%, 61%)
HSVhsv(258, 61%, 88%)
CMYKcmyk(42.7%, 61.3%, 0%, 11.8%)
CIE-LABlab(48.16, 48.23, -64.52)
CIE-LCHlch(48.16, 80.56, 306.78°)
OKLaboklab(57.37% 0.0783 -0.1841)
OKLCHoklch(57.37% 0.2 293)
XYZxyz(26.0484, 16.9190, 73.1128)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157E1 #B7E157
analogous
#5772E1 #8157E1 #C657E1
triadic
#8157E1 #E18157 #57E181
tetradic
#8157E1 #E15772 #B7E157 #57E1C6
square
#8157E1 #E15772 #B7E157 #57E1C6
split-complementary
#8157E1 #E1C657 #72E157
monochromatic
#451DA1 #5B26D5 #8157E1 #A88BEA #CFBFF4

Accessibility & contrast

On white

4.79
#8157E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8157E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157E1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157E1#FFFFFF#000000##FFFFFF
##8157E11.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E5
Deuteranopia (green-blind)
#0070DE
Tritanopia (blue-blind)
#667694
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8157e1;
/* rgb */ color: rgb(129, 87, 225);
/* oklch */ color: oklch(57.4% 0.200 293.0);
Tailwind
colors: {
  custom: {
    50: '#ac88eb',
    500: '#8157e1',
    950: '#000000',
  },
}
SCSS
$custom: #8157e1;
$custom-light: #ac88eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8157e1",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 225
  },
  "hsl": {
    "h": 258.261,
    "s": 69.697,
    "l": 61.176
  },
  "oklch": {
    "l": 0.57367,
    "c": 0.20008,
    "h": 293
  },
  "luminance": 0.1692
}

Semantic roles & 50–950 ramp

primary
#8157E1
secondary
#D4E4B0
accent
#D21498
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8157E1

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

Preview Lab → · Contrast checker → · Palette generator →

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