#8A5BB3#8A5BB3

#8A5BB3 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.139 H 307.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB3
RGBrgb(138, 91, 179)
HSLhsl(272, 37%, 53%)
HSVhsv(272, 49%, 70%)
CMYKcmyk(22.9%, 49.2%, 0%, 29.8%)
CIE-LABlab(47.16, 36.42, -39.61)
CIE-LCHlch(47.16, 53.81, 312.59°)
OKLaboklab(55.95% 0.0839 -0.1108)
OKLCHoklch(55.95% 0.139 307.1)
XYZxyz(22.3574, 16.1403, 44.5767)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB3 #84B35B
analogous
#5E5BB3 #8A5BB3 #B35BB0
triadic
#8A5BB3 #B38A5B #5BB38A
tetradic
#8A5BB3 #B35E5B #84B35B #5BB0B3
square
#8A5BB3 #B35E5B #84B35B #5BB0B3
split-complementary
#8A5BB3 #B0B35B #5BB35E
monochromatic
#4C2F65 #6B428F #8A5BB3 #A885C6 #C6AFDA

Accessibility & contrast

On white

4.97
#8A5BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A5BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB3#FFFFFF#000000##FFFFFF
##8A5BB31.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436EB6
Deuteranopia (green-blind)
#5070B1
Tritanopia (blue-blind)
#846A7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5bb3;
/* rgb */ color: rgb(138, 91, 179);
/* oklch */ color: oklch(56.0% 0.139 307.1);
Tailwind
colors: {
  custom: {
    50: '#ae8bca',
    500: '#8a5bb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb3;
$custom-light: #ae8bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb3",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 179
  },
  "hsl": {
    "h": 272.045,
    "s": 36.667,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5595,
    "c": 0.13903,
    "h": 307.1
  },
  "luminance": 0.1614
}

Semantic roles & 50–950 ramp

primary
#8A5BB3
secondary
#B4C8A2
accent
#CD5B90
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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