#8157C8#8157C8

#8157C8 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.6% C 0.169 H 297.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8157C8
RGBrgb(129, 87, 200)
HSLhsl(262, 51%, 56%)
HSVhsv(262, 57%, 78%)
CMYKcmyk(35.5%, 56.5%, 0%, 21.6%)
CIE-LABlab(46.52, 41.59, -52.88)
CIE-LCHlch(46.52, 67.27, 308.18°)
OKLaboklab(55.64% 0.079 -0.1499)
OKLCHoklch(55.64% 0.169 297.8)
XYZxyz(22.8842, 15.6533, 56.4481)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157C8 #9EC857
analogous
#5766C8 #8157C8 #BA57C8
triadic
#8157C8 #C88157 #57C881
tetradic
#8157C8 #C85766 #9EC857 #57C8BA
square
#8157C8 #C85766 #9EC857 #57C8BA
split-complementary
#8157C8 #C8BA57 #66C857
monochromatic
#48297C #6238AA #8157C8 #A485D7 #C6B3E6

Accessibility & contrast

On white

5.08
#8157C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8157C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157C8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157C8#FFFFFF#000000##FFFFFF
##8157C81.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216ECC
Deuteranopia (green-blind)
#316DC5
Tritanopia (blue-blind)
#716E87
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8157c8;
/* rgb */ color: rgb(129, 87, 200);
/* oklch */ color: oklch(55.6% 0.169 297.8);
Tailwind
colors: {
  custom: {
    50: '#aa88d9',
    500: '#8157c8',
    950: '#000000',
  },
}
SCSS
$custom: #8157c8;
$custom-light: #aa88d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8157c8",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 262.301,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55643,
    "c": 0.16945,
    "h": 297.8
  },
  "luminance": 0.15654
}

Semantic roles & 50–950 ramp

primary
#8157C8
secondary
#C3D5A6
accent
#DA4EA6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8157C8

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

Preview Lab → · Contrast checker → · Palette generator →

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