#8157E8#8157E8

#8157E8 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.9% C 0.208 H 291.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8157E8
RGBrgb(129, 87, 232)
HSLhsl(257, 76%, 63%)
HSVhsv(257, 63%, 91%)
CMYKcmyk(44.4%, 62.5%, 0%, 9%)
CIE-LABlab(48.65, 50.13, -67.68)
CIE-LCHlch(48.65, 84.22, 306.52°)
OKLaboklab(57.88% 0.0778 -0.1934)
OKLCHoklch(57.88% 0.208 291.9)
XYZxyz(27.0229, 17.3088, 78.2454)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157E8 #BEE857
analogous
#5776E8 #8157E8 #C957E8
triadic
#8157E8 #E88157 #57E881
tetradic
#8157E8 #E85776 #BEE857 #57E8C9
square
#8157E8 #E85776 #BEE857 #57E8C9
split-complementary
#8157E8 #E8C957 #76E857
monochromatic
#4318AD #5921E1 #8157E8 #A98DEF #D2C3F7

Accessibility & contrast

On white

4.71
#8157E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8157E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157E8
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157E8#FFFFFF#000000##FFFFFF
##8157E81.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076ED
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#637998
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8157e8;
/* rgb */ color: rgb(129, 87, 232);
/* oklch */ color: oklch(57.9% 0.208 291.9);
Tailwind
colors: {
  custom: {
    50: '#ad88f0',
    500: '#8157e8',
    950: '#000000',
  },
}
SCSS
$custom: #8157e8;
$custom-light: #ad88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8157e8",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 257.379,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.20847,
    "h": 291.9
  },
  "luminance": 0.1731
}

Semantic roles & 50–950 ramp

primary
#8157E8
secondary
#D8E8B3
accent
#D80D9D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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