#8A5CB1#8A5CB1

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

Color values

HEX#8A5CB1
RGBrgb(138, 92, 177)
HSLhsl(272, 35%, 53%)
HSVhsv(272, 48%, 69%)
CMYKcmyk(22%, 48%, 0%, 30.6%)
CIE-LABlab(47.28, 35.37, -38.26)
CIE-LCHlch(47.28, 52.10, 312.76°)
OKLaboklab(56.01% 0.0822 -0.1069)
OKLCHoklch(56.01% 0.135 307.6)
XYZxyz(22.2426, 16.2321, 43.5478)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CB1 #83B15C
analogous
#5F5CB1 #8A5CB1 #B15CAD
triadic
#8A5CB1 #B18A5C #5CB18A
tetradic
#8A5CB1 #B15F5C #83B15C #5CADB1
square
#8A5CB1 #B15F5C #83B15C #5CADB1
split-complementary
#8A5CB1 #ADB15C #5CB15F
monochromatic
#4B2F63 #6B438D #8A5CB1 #A885C5 #C5AFD9

Accessibility & contrast

On white

4.95
#8A5CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A5CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CB1
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CB1#FFFFFF#000000##FFFFFF
##8A5CB11.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466EB4
Deuteranopia (green-blind)
#5271AF
Tritanopia (blue-blind)
#846A7E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5cb1;
/* rgb */ color: rgb(138, 92, 177);
/* oklch */ color: oklch(56.0% 0.135 307.6);
Tailwind
colors: {
  custom: {
    50: '#ae8bc9',
    500: '#8a5cb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cb1;
$custom-light: #ae8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cb1",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 272.471,
    "s": 35.27,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56005,
    "c": 0.13487,
    "h": 307.6
  },
  "luminance": 0.16232
}

Semantic roles & 50–950 ramp

primary
#8A5CB1
secondary
#B3C7A2
accent
#CB5C8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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