#8157DA#8157DA

#8157DA is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.9% C 0.192 H 294.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8157DA
RGBrgb(129, 87, 218)
HSLhsl(259, 64%, 60%)
HSVhsv(259, 60%, 85%)
CMYKcmyk(40.8%, 60.1%, 0%, 14.5%)
CIE-LABlab(47.68, 46.35, -61.31)
CIE-LCHlch(47.68, 76.86, 307.09°)
OKLaboklab(56.87% 0.0787 -0.1747)
OKLCHoklch(56.87% 0.192 294.3)
XYZxyz(25.1130, 16.5449, 68.1864)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157DA #B0DA57
analogous
#576EDA #8157DA #C357DA
triadic
#8157DA #DA8157 #57DA81
tetradic
#8157DA #DA576E #B0DA57 #57DAC3
square
#8157DA #DA576E #B0DA57 #57DAC3
split-complementary
#8157DA #DAC357 #6EDA57
monochromatic
#462196 #5E2CC8 #8157DA #A789E5 #CCBBF0

Accessibility & contrast

On white

4.87
#8157DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8157DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157DA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157DA#FFFFFF#000000##FFFFFF
##8157DA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DE
Deuteranopia (green-blind)
#096FD7
Tritanopia (blue-blind)
#6A7490
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8157da;
/* rgb */ color: rgb(129, 87, 218);
/* oklch */ color: oklch(56.9% 0.192 294.3);
Tailwind
colors: {
  custom: {
    50: '#ab88e6',
    500: '#8157da',
    950: '#000000',
  },
}
SCSS
$custom: #8157da;
$custom-light: #ab88e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8157da",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 218
  },
  "hsl": {
    "h": 259.237,
    "s": 63.902,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56869,
    "c": 0.1916,
    "h": 294.3
  },
  "luminance": 0.16545
}

Semantic roles & 50–950 ramp

primary
#8157DA
secondary
#CFE0AD
accent
#E741B2
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8157DA

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

Preview Lab → · Contrast checker → · Palette generator →

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