#8157F6#8157F6

#8157F6 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.9% C 0.225 H 289.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8157F6
RGBrgb(129, 87, 246)
HSLhsl(256, 90%, 65%)
HSVhsv(256, 65%, 96%)
CMYKcmyk(47.6%, 64.6%, 0%, 3.5%)
CIE-LABlab(49.66, 53.94, -73.89)
CIE-LCHlch(49.66, 91.48, 306.13°)
OKLaboklab(58.93% 0.0764 -0.2117)
OKLCHoklch(58.93% 0.225 289.9)
XYZxyz(29.0913, 18.1362, 89.1387)
Luminance0.1814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157F6 #CCF657
analogous
#577CF6 #8157F6 #D057F6
triadic
#8157F6 #F68157 #57F681
tetradic
#8157F6 #F6577C #CCF657 #57F6D0
square
#8157F6 #F6577C #CCF657 #57F6D0
split-complementary
#8157F6 #F6D057 #7CF657
monochromatic
#3D0BC8 #551DF3 #8157F6 #AD91F9 #D8CBFC

Accessibility & contrast

On white

4.54
#8157F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8157F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8157F6
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157F6#FFFFFF#000000##000000
##8157F61.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FB
Deuteranopia (green-blind)
#0072F3
Tritanopia (blue-blind)
#5B7E9F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8157f6;
/* rgb */ color: rgb(129, 87, 246);
/* oklch */ color: oklch(58.9% 0.225 289.9);
Tailwind
colors: {
  custom: {
    50: '#ae89fa',
    500: '#8157f6',
    950: '#000000',
  },
}
SCSS
$custom: #8157f6;
$custom-light: #ae89fa;
$custom-dark: #000000;
JSON
{
  "hex": "#8157f6",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 246
  },
  "hsl": {
    "h": 255.849,
    "s": 89.831,
    "l": 65.294
  },
  "oklch": {
    "l": 0.58929,
    "c": 0.22503,
    "h": 289.9
  },
  "luminance": 0.18137
}

Semantic roles & 50–950 ramp

primary
#8157F6
secondary
#E1EFBA
accent
#E600A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #8157F6

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

Preview Lab → · Contrast checker → · Palette generator →

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