#8157EF#8157EF

#8157EF is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.4% C 0.217 H 290.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8157EF
RGBrgb(129, 87, 239)
HSLhsl(257, 83%, 64%)
HSVhsv(257, 64%, 94%)
CMYKcmyk(46%, 63.6%, 0%, 6.3%)
CIE-LABlab(49.15, 52.03, -70.80)
CIE-LCHlch(49.15, 87.87, 306.31°)
OKLaboklab(58.4% 0.0772 -0.2026)
OKLCHoklch(58.4% 0.217 290.9)
XYZxyz(28.0371, 17.7145, 83.5866)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157EF #C5EF57
analogous
#5779EF #8157EF #CD57EF
triadic
#8157EF #EF8157 #57EF81
tetradic
#8157EF #EF5779 #C5EF57 #57EFCD
square
#8157EF #EF5779 #C5EF57 #57EFCD
split-complementary
#8157EF #EFCD57 #79EF57
monochromatic
#4012BA #571FEA #8157EF #AB8FF4 #D5C7FA

Accessibility & contrast

On white

4.62
#8157EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8157EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8157EF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157EF#FFFFFF#000000##FFFFFF
##8157EF1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#5F7B9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8157ef;
/* rgb */ color: rgb(129, 87, 239);
/* oklch */ color: oklch(58.4% 0.217 290.9);
Tailwind
colors: {
  custom: {
    50: '#ad89f5',
    500: '#8157ef',
    950: '#000000',
  },
}
SCSS
$custom: #8157ef;
$custom-light: #ad89f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8157ef",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 256.579,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58398,
    "c": 0.2168,
    "h": 290.9
  },
  "luminance": 0.17716
}

Semantic roles & 50–950 ramp

primary
#8157EF
secondary
#DDECB6
accent
#DF06A3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157EF

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

Preview Lab → · Contrast checker → · Palette generator →

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