#8A5BB0#8A5BB0

#8A5BB0 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.8% C 0.135 H 308.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB0
RGBrgb(138, 91, 176)
HSLhsl(273, 35%, 52%)
HSVhsv(273, 48%, 69%)
CMYKcmyk(21.6%, 48.3%, 0%, 31%)
CIE-LABlab(47.00, 35.70, -38.11)
CIE-LCHlch(47.00, 52.22, 313.14°)
OKLaboklab(55.78% 0.0835 -0.1065)
OKLCHoklch(55.78% 0.135 308.1)
XYZxyz(22.0573, 16.0203, 42.9961)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB0 #81B05B
analogous
#5F5BB0 #8A5BB0 #B05BAC
triadic
#8A5BB0 #B08A5B #5BB08A
tetradic
#8A5BB0 #B05F5B #81B05B #5BACB0
square
#8A5BB0 #B05F5B #81B05B #5BACB0
split-complementary
#8A5BB0 #ACB05B #5BB05F
monochromatic
#4B2F62 #6B438B #8A5BB0 #A784C4 #C5AED8

Accessibility & contrast

On white

5.00
#8A5BB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8A5BB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB0
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB0#FFFFFF#000000##FFFFFF
##8A5BB01.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456EB3
Deuteranopia (green-blind)
#5270AE
Tritanopia (blue-blind)
#85697D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5bb0;
/* rgb */ color: rgb(138, 91, 176);
/* oklch */ color: oklch(55.8% 0.135 308.1);
Tailwind
colors: {
  custom: {
    50: '#ae8ac8',
    500: '#8a5bb0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb0;
$custom-light: #ae8ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb0",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 176
  },
  "hsl": {
    "h": 273.176,
    "s": 34.979,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55782,
    "c": 0.13532,
    "h": 308.1
  },
  "luminance": 0.1602
}

Semantic roles & 50–950 ramp

primary
#8A5BB0
secondary
#B1C6A1
accent
#CB5D8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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