#8A5BB7#8A5BB7

#8A5BB7 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.144 H 305.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB7
RGBrgb(138, 91, 183)
HSLhsl(271, 39%, 54%)
HSVhsv(271, 50%, 72%)
CMYKcmyk(24.6%, 50.3%, 0%, 28.2%)
CIE-LABlab(47.37, 37.37, -41.61)
CIE-LCHlch(47.37, 55.93, 311.93°)
OKLaboklab(56.18% 0.0844 -0.1166)
OKLCHoklch(56.18% 0.144 305.9)
XYZxyz(22.7678, 16.3045, 46.7382)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB7 #88B75B
analogous
#5C5BB7 #8A5BB7 #B75BB6
triadic
#8A5BB7 #B78A5B #5BB78A
tetradic
#8A5BB7 #B75C5B #88B75B #5BB6B7
square
#8A5BB7 #B75C5B #88B75B #5BB6B7
split-complementary
#8A5BB7 #B6B75B #5BB75C
monochromatic
#4C2E69 #6B4194 #8A5BB7 #A886CA #C7B0DC

Accessibility & contrast

On white

4.93
#8A5BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A5BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB7#FFFFFF#000000##FFFFFF
##8A5BB71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#4E71B5
Tritanopia (blue-blind)
#836B80
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5bb7;
/* rgb */ color: rgb(138, 91, 183);
/* oklch */ color: oklch(56.2% 0.144 305.9);
Tailwind
colors: {
  custom: {
    50: '#ae8bcd',
    500: '#8a5bb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb7;
$custom-light: #ae8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb7",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 183
  },
  "hsl": {
    "h": 270.652,
    "s": 38.983,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56178,
    "c": 0.14396,
    "h": 305.9
  },
  "luminance": 0.16304
}

Semantic roles & 50–950 ramp

primary
#8A5BB7
secondary
#B6CBA3
accent
#CF5993
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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