#8157EB#8157EB

#8157EB is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.1% C 0.212 H 291.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#8157EB
RGBrgb(129, 87, 235)
HSLhsl(257, 79%, 63%)
HSVhsv(257, 63%, 92%)
CMYKcmyk(45.1%, 63%, 0%, 7.8%)
CIE-LABlab(48.86, 50.94, -69.02)
CIE-LCHlch(48.86, 85.79, 306.43°)
OKLaboklab(58.1% 0.0775 -0.1974)
OKLCHoklch(58.1% 0.212 291.5)
XYZxyz(27.4527, 17.4807, 80.5088)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157EB #C1EB57
analogous
#5777EB #8157EB #CB57EB
triadic
#8157EB #EB8157 #57EB81
tetradic
#8157EB #EB5777 #C1EB57 #57EBCB
square
#8157EB #EB5777 #C1EB57 #57EBCB
split-complementary
#8157EB #EBCB57 #77EB57
monochromatic
#4215B2 #5820E4 #8157EB #AA8EF2 #D3C4F8

Accessibility & contrast

On white

4.67
#8157EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#8157EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8157EB
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157EB#FFFFFF#000000##FFFFFF
##8157EB1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#617A99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8157eb;
/* rgb */ color: rgb(129, 87, 235);
/* oklch */ color: oklch(58.1% 0.212 291.5);
Tailwind
colors: {
  custom: {
    50: '#ad88f2',
    500: '#8157eb',
    950: '#000000',
  },
}
SCSS
$custom: #8157eb;
$custom-light: #ad88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8157eb",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 257.027,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58099,
    "c": 0.21205,
    "h": 291.5
  },
  "luminance": 0.17482
}

Semantic roles & 50–950 ramp

primary
#8157EB
secondary
#DAE9B4
accent
#DB0AA0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157EB

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

Preview Lab → · Contrast checker → · Palette generator →

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