#8157EE#8157EE

#8157EE is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.3% C 0.216 H 291.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8157EE
RGBrgb(129, 87, 238)
HSLhsl(257, 82%, 64%)
HSVhsv(257, 63%, 93%)
CMYKcmyk(45.8%, 63.4%, 0%, 6.7%)
CIE-LABlab(49.08, 51.76, -70.36)
CIE-LCHlch(49.08, 87.35, 306.34°)
OKLaboklab(58.32% 0.0773 -0.2013)
OKLCHoklch(58.32% 0.216 291)
XYZxyz(27.8897, 17.6556, 82.8107)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157EE #C4EE57
analogous
#5778EE #8157EE #CD57EE
triadic
#8157EE #EE8157 #57EE81
tetradic
#8157EE #EE5778 #C4EE57 #57EECD
square
#8157EE #EE5778 #C4EE57 #57EECD
split-complementary
#8157EE #EECD57 #78EE57
monochromatic
#4113B8 #571FE8 #8157EE #AB8FF4 #D4C6F9

Accessibility & contrast

On white

4.63
#8157EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#8157EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8157EE
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157EE#FFFFFF#000000##FFFFFF
##8157EE1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8157ee;
/* rgb */ color: rgb(129, 87, 238);
/* oklch */ color: oklch(58.3% 0.216 291.0);
Tailwind
colors: {
  custom: {
    50: '#ad89f4',
    500: '#8157ee',
    950: '#000000',
  },
}
SCSS
$custom: #8157ee;
$custom-light: #ad89f4;
$custom-dark: #000000;
JSON
{
  "hex": "#8157ee",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 238
  },
  "hsl": {
    "h": 256.689,
    "s": 81.622,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58323,
    "c": 0.21561,
    "h": 291
  },
  "luminance": 0.17657
}

Semantic roles & 50–950 ramp

primary
#8157EE
secondary
#DCEBB6
accent
#DE08A2
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157EE

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

Preview Lab → · Contrast checker → · Palette generator →

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