#8A5BBB#8A5BBB

#8A5BBB is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.4% C 0.149 H 304.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5BBB
RGBrgb(138, 91, 187)
HSLhsl(269, 41%, 55%)
HSVhsv(269, 51%, 73%)
CMYKcmyk(26.2%, 51.3%, 0%, 26.7%)
CIE-LABlab(47.59, 38.34, -43.59)
CIE-LCHlch(47.59, 58.05, 311.34°)
OKLaboklab(56.41% 0.0847 -0.1224)
OKLCHoklch(56.41% 0.149 304.7)
XYZxyz(23.1900, 16.4734, 48.9621)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BBB #8CBB5B
analogous
#5B5CBB #8A5BBB #BA5BBB
triadic
#8A5BBB #BB8A5B #5BBB8A
tetradic
#8A5BBB #BB5B5C #8CBB5B #5BBBBA
square
#8A5BBB #BB5B5C #8CBB5B #5BBBBA
split-complementary
#8A5BBB #BBBA5B #5CBB5B
monochromatic
#4D2E6E #6B4099 #8A5BBB #A986CD #C8B2DF

Accessibility & contrast

On white

4.89
#8A5BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A5BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BBB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BBB#FFFFFF#000000##FFFFFF
##8A5BBB1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D70BE
Deuteranopia (green-blind)
#4B71B9
Tritanopia (blue-blind)
#826C82
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5bbb;
/* rgb */ color: rgb(138, 91, 187);
/* oklch */ color: oklch(56.4% 0.149 304.7);
Tailwind
colors: {
  custom: {
    50: '#af8bd0',
    500: '#8a5bbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bbb;
$custom-light: #af8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bbb",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 269.375,
    "s": 41.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56411,
    "c": 0.1489,
    "h": 304.7
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#8A5BBB
secondary
#B9CDA5
accent
#D15795
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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