#8157CA#8157CA

#8157CA is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.8% C 0.172 H 297.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8157CA
RGBrgb(129, 87, 202)
HSLhsl(262, 52%, 57%)
HSVhsv(262, 57%, 79%)
CMYKcmyk(36.1%, 56.9%, 0%, 20.8%)
CIE-LABlab(46.64, 42.11, -53.83)
CIE-LCHlch(46.64, 68.35, 308.03°)
OKLaboklab(55.78% 0.079 -0.1527)
OKLCHoklch(55.78% 0.172 297.4)
XYZxyz(23.1194, 15.7475, 57.6872)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157CA #A0CA57
analogous
#5767CA #8157CA #BB57CA
triadic
#8157CA #CA8157 #57CA81
tetradic
#8157CA #CA5767 #A0CA57 #57CABB
square
#8157CA #CA5767 #A0CA57 #57CABB
split-complementary
#8157CA #CABB57 #67CA57
monochromatic
#48287F #6237AD #8157CA #A486D9 #C7B4E7

Accessibility & contrast

On white

5.06
#8157CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#8157CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157CA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157CA#FFFFFF#000000##FFFFFF
##8157CA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E6FCE
Deuteranopia (green-blind)
#2F6DC7
Tritanopia (blue-blind)
#706F88
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8157ca;
/* rgb */ color: rgb(129, 87, 202);
/* oklch */ color: oklch(55.8% 0.172 297.4);
Tailwind
colors: {
  custom: {
    50: '#aa88db',
    500: '#8157ca',
    950: '#000000',
  },
}
SCSS
$custom: #8157ca;
$custom-light: #aa88db;
$custom-dark: #000000;
JSON
{
  "hex": "#8157ca",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 202
  },
  "hsl": {
    "h": 261.913,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55775,
    "c": 0.17194,
    "h": 297.4
  },
  "luminance": 0.15748
}

Semantic roles & 50–950 ramp

primary
#8157CA
secondary
#C5D6A7
accent
#DB4CA7
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8157CA

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

Preview Lab → · Contrast checker → · Palette generator →

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