#8A5BB8#8A5BB8

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

Color values

HEX#8A5BB8
RGBrgb(138, 91, 184)
HSLhsl(270, 40%, 54%)
HSVhsv(270, 51%, 72%)
CMYKcmyk(25%, 50.5%, 0%, 27.8%)
CIE-LABlab(47.43, 37.61, -42.10)
CIE-LCHlch(47.43, 56.46, 311.78°)
OKLaboklab(56.24% 0.0845 -0.1181)
OKLCHoklch(56.24% 0.145 305.6)
XYZxyz(22.8722, 16.3463, 47.2883)
Luminance0.1635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB8 #89B85B
analogous
#5C5BB8 #8A5BB8 #B85BB7
triadic
#8A5BB8 #B88A5B #5BB88A
tetradic
#8A5BB8 #B85C5B #89B85B #5BB7B8
square
#8A5BB8 #B85C5B #89B85B #5BB7B8
split-complementary
#8A5BB8 #B7B85B #5BB85C
monochromatic
#4D2E6A #6B4195 #8A5BB8 #A886CA #C7B0DD

Accessibility & contrast

On white

4.92
#8A5BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A5BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB8#FFFFFF#000000##FFFFFF
##8A5BB81.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406FBB
Deuteranopia (green-blind)
#4D71B6
Tritanopia (blue-blind)
#836B81
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5bb8;
/* rgb */ color: rgb(138, 91, 184);
/* oklch */ color: oklch(56.2% 0.145 305.6);
Tailwind
colors: {
  custom: {
    50: '#ae8bce',
    500: '#8a5bb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb8;
$custom-light: #ae8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb8",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 270.323,
    "s": 39.574,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.14519,
    "h": 305.6
  },
  "luminance": 0.16346
}

Semantic roles & 50–950 ramp

primary
#8A5BB8
secondary
#B7CBA4
accent
#CF5893
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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