#8157EA#8157EA

#8157EA is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.0% C 0.211 H 291.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8157EA
RGBrgb(129, 87, 234)
HSLhsl(257, 78%, 63%)
HSVhsv(257, 63%, 92%)
CMYKcmyk(44.9%, 62.8%, 0%, 8.2%)
CIE-LABlab(48.79, 50.67, -68.58)
CIE-LCHlch(48.79, 85.27, 306.46°)
OKLaboklab(58.03% 0.0776 -0.196)
OKLCHoklch(58.03% 0.211 291.6)
XYZxyz(27.3086, 17.4231, 79.7501)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157EA #C0EA57
analogous
#5776EA #8157EA #CB57EA
triadic
#8157EA #EA8157 #57EA81
tetradic
#8157EA #EA5776 #C0EA57 #57EACB
square
#8157EA #EA5776 #C0EA57 #57EACB
split-complementary
#8157EA #EACB57 #76EA57
monochromatic
#4216B1 #5821E3 #8157EA #AA8DF1 #D3C4F8

Accessibility & contrast

On white

4.68
#8157EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#8157EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157EA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157EA#FFFFFF#000000##FFFFFF
##8157EA1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#627A99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8157ea;
/* rgb */ color: rgb(129, 87, 234);
/* oklch */ color: oklch(58.0% 0.211 291.6);
Tailwind
colors: {
  custom: {
    50: '#ad88f2',
    500: '#8157ea',
    950: '#000000',
  },
}
SCSS
$custom: #8157ea;
$custom-light: #ad88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8157ea",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 257.143,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.58025,
    "c": 0.21086,
    "h": 291.6
  },
  "luminance": 0.17424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8157EA

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

Preview Lab → · Contrast checker → · Palette generator →

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