#8A5BB4#8A5BB4

#8A5BB4 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.140 H 306.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A5BB4
RGBrgb(138, 91, 180)
HSLhsl(272, 37%, 53%)
HSVhsv(272, 49%, 71%)
CMYKcmyk(23.3%, 49.4%, 0%, 29.4%)
CIE-LABlab(47.21, 36.65, -40.11)
CIE-LCHlch(47.21, 54.34, 312.42°)
OKLaboklab(56.01% 0.084 -0.1123)
OKLCHoklch(56.01% 0.14 306.8)
XYZxyz(22.4589, 16.1809, 45.1112)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BB4 #85B45B
analogous
#5D5BB4 #8A5BB4 #B45BB1
triadic
#8A5BB4 #B48A5B #5BB48A
tetradic
#8A5BB4 #B45D5B #85B45B #5BB1B4
square
#8A5BB4 #B45D5B #85B45B #5BB1B4
split-complementary
#8A5BB4 #B1B45B #5BB45D
monochromatic
#4C2F66 #6B4290 #8A5BB4 #A885C7 #C6AFDA

Accessibility & contrast

On white

4.96
#8A5BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8A5BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BB4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BB4#FFFFFF#000000##FFFFFF
##8A5BB41.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5bb4;
/* rgb */ color: rgb(138, 91, 180);
/* oklch */ color: oklch(56.0% 0.140 306.8);
Tailwind
colors: {
  custom: {
    50: '#ae8bcb',
    500: '#8a5bb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bb4;
$custom-light: #ae8bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bb4",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 271.685,
    "s": 37.238,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56007,
    "c": 0.14025,
    "h": 306.8
  },
  "luminance": 0.16181
}

Semantic roles & 50–950 ramp

primary
#8A5BB4
secondary
#B4C9A2
accent
#CD5B91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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