#8157E2#8157E2

#8157E2 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.4% C 0.201 H 292.9°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8157E2
RGBrgb(129, 87, 226)
HSLhsl(258, 71%, 61%)
HSVhsv(258, 62%, 89%)
CMYKcmyk(42.9%, 61.5%, 0%, 11.4%)
CIE-LABlab(48.23, 48.50, -64.97)
CIE-LCHlch(48.23, 81.08, 306.74°)
OKLaboklab(57.44% 0.0783 -0.1854)
OKLCHoklch(57.44% 0.201 292.9)
XYZxyz(26.1852, 16.9737, 73.8334)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157E2 #B8E257
analogous
#5773E2 #8157E2 #C657E2
triadic
#8157E2 #E28157 #57E281
tetradic
#8157E2 #E25773 #B8E257 #57E2C6
square
#8157E2 #E25773 #B8E257 #57E2C6
split-complementary
#8157E2 #E2C657 #73E257
monochromatic
#451CA3 #5B25D7 #8157E2 #A88BEB #CFBFF4

Accessibility & contrast

On white

4.78
#8157E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8157E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157E2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157E2#FFFFFF#000000##FFFFFF
##8157E21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#0070DF
Tritanopia (blue-blind)
#667794
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8157e2;
/* rgb */ color: rgb(129, 87, 226);
/* oklch */ color: oklch(57.4% 0.201 292.9);
Tailwind
colors: {
  custom: {
    50: '#ac88ec',
    500: '#8157e2',
    950: '#000000',
  },
}
SCSS
$custom: #8157e2;
$custom-light: #ac88ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8157e2",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 226
  },
  "hsl": {
    "h": 258.129,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.57439,
    "c": 0.20129,
    "h": 292.9
  },
  "luminance": 0.16975
}

Semantic roles & 50–950 ramp

primary
#8157E2
secondary
#D5E4B0
accent
#D31399
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8157E2

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

Preview Lab → · Contrast checker → · Palette generator →

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