#8158AF#8158AF

#8158AF is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.3% C 0.136 H 304.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8158AF
RGBrgb(129, 88, 175)
HSLhsl(268, 35%, 52%)
HSVhsv(268, 50%, 69%)
CMYKcmyk(26.3%, 49.7%, 0%, 31.4%)
CIE-LABlab(45.28, 34.64, -40.31)
CIE-LCHlch(45.28, 53.15, 310.67°)
OKLaboklab(54.26% 0.0762 -0.1131)
OKLCHoklch(54.26% 0.136 304)
XYZxyz(20.2792, 14.7418, 42.3262)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8158AF #86AF58
analogous
#585BAF #8158AF #AD58AF
triadic
#8158AF #AF8158 #58AF81
tetradic
#8158AF #AF585B #86AF58 #58AFAD
square
#8158AF #AF585B #86AF58 #58AFAD
split-complementary
#8158AF #AFAD58 #5BAF58
monochromatic
#452E5F #634188 #8158AF #A081C3 #BFABD7

Accessibility & contrast

On white

5.32
#8158AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8158AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8158AF
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8158AF#FFFFFF#000000##FFFFFF
##8158AF1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8158af;
/* rgb */ color: rgb(129, 88, 175);
/* oklch */ color: oklch(54.3% 0.136 304.0);
Tailwind
colors: {
  custom: {
    50: '#a888c7',
    500: '#8158af',
    950: '#000000',
  },
}
SCSS
$custom: #8158af;
$custom-light: #a888c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8158af",
  "rgb": {
    "r": 129,
    "g": 88,
    "b": 175
  },
  "hsl": {
    "h": 268.276,
    "s": 35.223,
    "l": 51.569
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.13638,
    "h": 304
  },
  "luminance": 0.14742
}

Semantic roles & 50–950 ramp

primary
#8158AF
secondary
#B3C59E
accent
#CB5D97
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8158AF

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

Preview Lab → · Contrast checker → · Palette generator →

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