#8157E5#8157E5

#8157E5 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.7% C 0.205 H 292.4°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8157E5
RGBrgb(129, 87, 229)
HSLhsl(258, 73%, 62%)
HSVhsv(258, 62%, 90%)
CMYKcmyk(43.7%, 62%, 0%, 10.2%)
CIE-LABlab(48.44, 49.31, -66.33)
CIE-LCHlch(48.44, 82.65, 306.63°)
OKLaboklab(57.66% 0.0781 -0.1894)
OKLCHoklch(57.66% 0.205 292.4)
XYZxyz(26.6004, 17.1398, 76.0203)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157E5 #BBE557
analogous
#5774E5 #8157E5 #C857E5
triadic
#8157E5 #E58157 #57E581
tetradic
#8157E5 #E55774 #BBE557 #57E5C8
square
#8157E5 #E55774 #BBE557 #57E5C8
split-complementary
#8157E5 #E5C857 #74E557
monochromatic
#441AA8 #5922DD #8157E5 #A98CED #D0C1F5

Accessibility & contrast

On white

4.74
#8157E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8157E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157E5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157E5#FFFFFF#000000##FFFFFF
##8157E51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EA
Deuteranopia (green-blind)
#0070E2
Tritanopia (blue-blind)
#647896
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8157e5;
/* rgb */ color: rgb(129, 87, 229);
/* oklch */ color: oklch(57.7% 0.205 292.4);
Tailwind
colors: {
  custom: {
    50: '#ac88ee',
    500: '#8157e5',
    950: '#000000',
  },
}
SCSS
$custom: #8157e5;
$custom-light: #ac88ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8157e5",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 229
  },
  "hsl": {
    "h": 257.746,
    "s": 73.196,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57657,
    "c": 0.20489,
    "h": 292.4
  },
  "luminance": 0.17141
}

Semantic roles & 50–950 ramp

primary
#8157E5
secondary
#D7E6B2
accent
#D5109B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8157E5

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

Preview Lab → · Contrast checker → · Palette generator →

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