#8157DF#8157DF

#8157DF is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.2% C 0.198 H 293.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8157DF
RGBrgb(129, 87, 223)
HSLhsl(259, 68%, 61%)
HSVhsv(259, 61%, 87%)
CMYKcmyk(42.2%, 61%, 0%, 12.5%)
CIE-LABlab(48.02, 47.69, -63.61)
CIE-LCHlch(48.02, 79.50, 306.86°)
OKLaboklab(57.22% 0.0785 -0.1814)
OKLCHoklch(57.22% 0.198 293.4)
XYZxyz(25.7771, 16.8105, 71.6843)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157DF #B5DF57
analogous
#5771DF #8157DF #C557DF
triadic
#8157DF #DF8157 #57DF81
tetradic
#8157DF #DF5771 #B5DF57 #57DFC5
square
#8157DF #DF5771 #B5DF57 #57DFC5
split-complementary
#8157DF #DFC557 #71DF57
monochromatic
#451E9E #5C28D1 #8157DF #A88AE9 #CEBEF3

Accessibility & contrast

On white

4.81
#8157DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8157DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157DF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157DF#FFFFFF#000000##FFFFFF
##8157DF1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#0070DC
Tritanopia (blue-blind)
#677693
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8157df;
/* rgb */ color: rgb(129, 87, 223);
/* oklch */ color: oklch(57.2% 0.198 293.4);
Tailwind
colors: {
  custom: {
    50: '#ac88ea',
    500: '#8157df',
    950: '#000000',
  },
}
SCSS
$custom: #8157df;
$custom-light: #ac88ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8157df",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 258.529,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57223,
    "c": 0.19766,
    "h": 293.4
  },
  "luminance": 0.16811
}

Semantic roles & 50–950 ramp

primary
#8157DF
secondary
#D3E3AF
accent
#D01696
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8157DF

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

Preview Lab → · Contrast checker → · Palette generator →

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