#8159B5#8159B5

#8159B5 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.8% C 0.142 H 302.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8159B5
RGBrgb(129, 89, 181)
HSLhsl(266, 38%, 53%)
HSVhsv(266, 51%, 71%)
CMYKcmyk(28.7%, 50.8%, 0%, 29%)
CIE-LABlab(45.84, 35.56, -42.94)
CIE-LCHlch(45.84, 55.76, 309.63°)
OKLaboklab(54.78% 0.0754 -0.1208)
OKLCHoklch(54.78% 0.142 302)
XYZxyz(20.9642, 15.1480, 45.5265)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8159B5 #8DB559
analogous
#595FB5 #8159B5 #AF59B5
triadic
#8159B5 #B58159 #59B581
tetradic
#8159B5 #B5595F #8DB559 #59B5AF
square
#8159B5 #B5595F #8DB559 #59B5AF
split-complementary
#8159B5 #B5AF59 #5FB559
monochromatic
#462E66 #634090 #8159B5 #A183C8 #C1AEDB

Accessibility & contrast

On white

5.21
#8159B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8159B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8159B5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8159B5#FFFFFF#000000##FFFFFF
##8159B51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB8
Deuteranopia (green-blind)
#466CB3
Tritanopia (blue-blind)
#776A7F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8159b5;
/* rgb */ color: rgb(129, 89, 181);
/* oklch */ color: oklch(54.8% 0.142 302.0);
Tailwind
colors: {
  custom: {
    50: '#a889cb',
    500: '#8159b5',
    950: '#000000',
  },
}
SCSS
$custom: #8159b5;
$custom-light: #a889cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8159b5",
  "rgb": {
    "r": 129,
    "g": 89,
    "b": 181
  },
  "hsl": {
    "h": 266.087,
    "s": 38.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54778,
    "c": 0.1424,
    "h": 302
  },
  "luminance": 0.15148
}

Semantic roles & 50–950 ramp

primary
#8159B5
secondary
#B7C9A1
accent
#CE5A9C
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8159B5

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

Preview Lab → · Contrast checker → · Palette generator →

#8159B5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva