#8157AF#8157AF

#8157AF is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.1% C 0.138 H 304.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8157AF
RGBrgb(129, 87, 175)
HSLhsl(269, 35%, 51%)
HSVhsv(269, 50%, 69%)
CMYKcmyk(26.3%, 50.3%, 0%, 31.4%)
CIE-LABlab(45.05, 35.22, -40.67)
CIE-LCHlch(45.05, 53.80, 310.89°)
OKLaboklab(54.09% 0.0776 -0.1141)
OKLCHoklch(54.09% 0.138 304.2)
XYZxyz(20.1976, 14.5787, 42.2991)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8157AF #85AF57
analogous
#5759AF #8157AF #AD57AF
triadic
#8157AF #AF8157 #57AF81
tetradic
#8157AF #AF5759 #85AF57 #57AFAD
square
#8157AF #AF5759 #85AF57 #57AFAD
split-complementary
#8157AF #AFAD57 #59AF57
monochromatic
#452D5F #634188 #8157AF #A080C3 #BFAAD6

Accessibility & contrast

On white

5.36
#8157AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8157AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8157AF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8157AF#FFFFFF#000000##FFFFFF
##8157AF1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D69B2
Deuteranopia (green-blind)
#486BAD
Tritanopia (blue-blind)
#79677B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8157af;
/* rgb */ color: rgb(129, 87, 175);
/* oklch */ color: oklch(54.1% 0.138 304.2);
Tailwind
colors: {
  custom: {
    50: '#a887c7',
    500: '#8157af',
    950: '#000000',
  },
}
SCSS
$custom: #8157af;
$custom-light: #a887c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8157af",
  "rgb": {
    "r": 129,
    "g": 87,
    "b": 175
  },
  "hsl": {
    "h": 268.636,
    "s": 35.484,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54087,
    "c": 0.13803,
    "h": 304.2
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#8157AF
secondary
#B2C49E
accent
#CC5C96
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8157AF

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

Preview Lab → · Contrast checker → · Palette generator →

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