#8A5BB1#8A5BB1

#8A5BB1 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.8% C 0.137 H 307.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB1
RGBrgb(138, 91, 177)
HSLhsl(273, 36%, 53%)
HSVhsv(273, 49%, 69%)
CMYKcmyk(22%, 48.6%, 0%, 30.6%)
CIE-LABlab(47.05, 35.94, -38.61)
CIE-LCHlch(47.05, 52.75, 312.95°)
OKLaboklab(55.84% 0.0837 -0.1079)
OKLCHoklch(55.84% 0.137 307.8)
XYZxyz(22.1566, 16.0600, 43.5191)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB1 #82B15B
analogous
#5F5BB1 #8A5BB1 #B15BAD
triadic
#8A5BB1 #B18A5B #5BB18A
tetradic
#8A5BB1 #B15F5B #82B15B #5BADB1
square
#8A5BB1 #B15F5B #82B15B #5BADB1
split-complementary
#8A5BB1 #ADB15B #5BB15F
monochromatic
#4B2F63 #6B438C #8A5BB1 #A884C5 #C5AED8

Accessibility & contrast

On white

4.99
#8A5BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8A5BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB1
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB1#FFFFFF#000000##FFFFFF
##8A5BB11.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456EB4
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#84697E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5bb1;
/* rgb */ color: rgb(138, 91, 177);
/* oklch */ color: oklch(55.8% 0.137 307.8);
Tailwind
colors: {
  custom: {
    50: '#ae8ac9',
    500: '#8a5bb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb1;
$custom-light: #ae8ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb1",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 177
  },
  "hsl": {
    "h": 272.791,
    "s": 35.537,
    "l": 52.549
  },
  "oklch": {
    "l": 0.55838,
    "c": 0.13656,
    "h": 307.8
  },
  "luminance": 0.1606
}

Semantic roles & 50–950 ramp

primary
#8A5BB1
secondary
#B2C7A1
accent
#CC5C8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5BB1

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

Preview Lab → · Contrast checker → · Palette generator →

#8A5BB1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva