#8157E7#8157E7

#8157E7 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.8% C 0.207 H 292.1°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8157E7
RGBrgb(129, 87, 231)
HSLhsl(258, 75%, 62%)
HSVhsv(258, 62%, 91%)
CMYKcmyk(44.2%, 62.3%, 0%, 9.4%)
CIE-LABlab(48.58, 49.86, -67.23)
CIE-LCHlch(48.58, 83.70, 306.56°)
OKLaboklab(57.8% 0.0779 -0.1921)
OKLCHoklch(57.8% 0.207 292.1)
XYZxyz(26.8813, 17.2522, 77.4995)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157E7 #BDE757
analogous
#5775E7 #8157E7 #C957E7
triadic
#8157E7 #E78157 #57E781
tetradic
#8157E7 #E75775 #BDE757 #57E7C9
square
#8157E7 #E75775 #BDE757 #57E7C9
split-complementary
#8157E7 #E7C957 #75E757
monochromatic
#4318AB #5921DF #8157E7 #A98DEF #D1C2F6

Accessibility & contrast

On white

4.72
#8157E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8157E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157E7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157E7#FFFFFF#000000##FFFFFF
##8157E71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#637897
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8157e7;
/* rgb */ color: rgb(129, 87, 231);
/* oklch */ color: oklch(57.8% 0.207 292.1);
Tailwind
colors: {
  custom: {
    50: '#ad88f0',
    500: '#8157e7',
    950: '#000000',
  },
}
SCSS
$custom: #8157e7;
$custom-light: #ad88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8157e7",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 257.5,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57803,
    "c": 0.20728,
    "h": 292.1
  },
  "luminance": 0.17253
}

Semantic roles & 50–950 ramp

primary
#8157E7
secondary
#D8E7B3
accent
#D70E9D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157E7

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

Preview Lab → · Contrast checker → · Palette generator →

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