#8157DC#8157DC

#8157DC is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.0% C 0.194 H 293.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8157DC
RGBrgb(129, 87, 220)
HSLhsl(259, 66%, 60%)
HSVhsv(259, 60%, 86%)
CMYKcmyk(41.4%, 60.5%, 0%, 13.7%)
CIE-LABlab(47.82, 46.89, -62.23)
CIE-LCHlch(47.82, 77.92, 307.00°)
OKLaboklab(57.01% 0.0786 -0.1774)
OKLCHoklch(57.01% 0.194 293.9)
XYZxyz(25.3763, 16.6502, 69.5731)
Luminance0.1665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157DC #B2DC57
analogous
#5770DC #8157DC #C357DC
triadic
#8157DC #DC8157 #57DC81
tetradic
#8157DC #DC5770 #B2DC57 #57DCC3
square
#8157DC #DC5770 #B2DC57 #57DCC3
split-complementary
#8157DC #DCC357 #70DC57
monochromatic
#462099 #5D2ACB #8157DC #A78AE7 #CDBCF1

Accessibility & contrast

On white

4.85
#8157DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8157DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157DC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157DC#FFFFFF#000000##FFFFFF
##8157DC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#006FD9
Tritanopia (blue-blind)
#697591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8157dc;
/* rgb */ color: rgb(129, 87, 220);
/* oklch */ color: oklch(57.0% 0.194 293.9);
Tailwind
colors: {
  custom: {
    50: '#ab88e8',
    500: '#8157dc',
    950: '#000000',
  },
}
SCSS
$custom: #8157dc;
$custom-light: #ab88e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8157dc",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 258.947,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5701,
    "c": 0.19403,
    "h": 293.9
  },
  "luminance": 0.16651
}

Semantic roles & 50–950 ramp

primary
#8157DC
secondary
#D1E1AE
accent
#CD1894
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8157DC

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

Preview Lab → · Contrast checker → · Palette generator →

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