#8157CD#8157CD

#8157CD is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.0% C 0.176 H 296.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8157CD
RGBrgb(129, 87, 205)
HSLhsl(261, 54%, 57%)
HSVhsv(261, 58%, 80%)
CMYKcmyk(37.1%, 57.6%, 0%, 19.6%)
CIE-LABlab(46.83, 42.90, -55.25)
CIE-LCHlch(46.83, 69.95, 307.83°)
OKLaboklab(55.97% 0.079 -0.1569)
OKLCHoklch(55.97% 0.176 296.7)
XYZxyz(23.4781, 15.8909, 59.5761)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157CD #A3CD57
analogous
#5768CD #8157CD #BC57CD
triadic
#8157CD #CD8157 #57CD81
tetradic
#8157CD #CD5768 #A3CD57 #57CDBC
square
#8157CD #CD5768 #A3CD57 #57CDBC
split-complementary
#8157CD #CDBC57 #68CD57
monochromatic
#482783 #6135B2 #8157CD #A486DB #C8B5E9

Accessibility & contrast

On white

5.03
#8157CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#8157CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157CD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157CD#FFFFFF#000000##FFFFFF
##8157CD1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1770D1
Deuteranopia (green-blind)
#2A6ECA
Tritanopia (blue-blind)
#6F708A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8157cd;
/* rgb */ color: rgb(129, 87, 205);
/* oklch */ color: oklch(56.0% 0.176 296.7);
Tailwind
colors: {
  custom: {
    50: '#aa88dd',
    500: '#8157cd',
    950: '#000000',
  },
}
SCSS
$custom: #8157cd;
$custom-light: #aa88dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8157cd",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 205
  },
  "hsl": {
    "h": 261.356,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55975,
    "c": 0.17566,
    "h": 296.7
  },
  "luminance": 0.15891
}

Semantic roles & 50–950 ramp

primary
#8157CD
secondary
#C7D8A8
accent
#DD4AA9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8157CD

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

Preview Lab → · Contrast checker → · Palette generator →

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