#8157DB#8157DB

#8157DB is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.9% C 0.193 H 294.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8157DB
RGBrgb(129, 87, 219)
HSLhsl(259, 65%, 60%)
HSVhsv(259, 60%, 86%)
CMYKcmyk(41.1%, 60.3%, 0%, 14.1%)
CIE-LABlab(47.75, 46.62, -61.77)
CIE-LCHlch(47.75, 77.39, 307.04°)
OKLaboklab(56.94% 0.0787 -0.176)
OKLCHoklch(56.94% 0.193 294.1)
XYZxyz(25.2442, 16.5974, 68.8777)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157DB #B1DB57
analogous
#576FDB #8157DB #C357DB
triadic
#8157DB #DB8157 #57DB81
tetradic
#8157DB #DB576F #B1DB57 #57DBC3
square
#8157DB #DB576F #B1DB57 #57DBC3
split-complementary
#8157DB #DBC357 #6FDB57
monochromatic
#462097 #5E2BCA #8157DB #A789E6 #CDBCF1

Accessibility & contrast

On white

4.86
#8157DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#8157DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157DB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157DB#FFFFFF#000000##FFFFFF
##8157DB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DF
Deuteranopia (green-blind)
#046FD8
Tritanopia (blue-blind)
#697491
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8157db;
/* rgb */ color: rgb(129, 87, 219);
/* oklch */ color: oklch(56.9% 0.193 294.1);
Tailwind
colors: {
  custom: {
    50: '#ab88e7',
    500: '#8157db',
    950: '#000000',
  },
}
SCSS
$custom: #8157db;
$custom-light: #ab88e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8157db",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 259.091,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.56939,
    "c": 0.19282,
    "h": 294.1
  },
  "luminance": 0.16598
}

Semantic roles & 50–950 ramp

primary
#8157DB
secondary
#D0E0AD
accent
#E840B2
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8157DB

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

Preview Lab → · Contrast checker → · Palette generator →

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