#8A5CB3#8A5CB3

#8A5CB3 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.1% C 0.137 H 306.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5CB3
RGBrgb(138, 92, 179)
HSLhsl(272, 36%, 53%)
HSVhsv(272, 49%, 70%)
CMYKcmyk(22.9%, 48.6%, 0%, 29.8%)
CIE-LABlab(47.38, 35.85, -39.26)
CIE-LCHlch(47.38, 53.16, 312.40°)
OKLaboklab(56.12% 0.0825 -0.1098)
OKLCHoklch(56.12% 0.137 306.9)
XYZxyz(22.4434, 16.3125, 44.6054)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CB3 #85B35C
analogous
#5E5CB3 #8A5CB3 #B35CB1
triadic
#8A5CB3 #B38A5C #5CB38A
tetradic
#8A5CB3 #B35E5C #85B35C #5CB1B3
square
#8A5CB3 #B35E5C #85B35C #5CB1B3
split-complementary
#8A5CB3 #B1B35C #5CB35E
monochromatic
#4C2F65 #6B438F #8A5CB3 #A886C6 #C6AFDA

Accessibility & contrast

On white

4.93
#8A5CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A5CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CB3
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CB3#FFFFFF#000000##FFFFFF
##8A5CB31.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456FB6
Deuteranopia (green-blind)
#5171B1
Tritanopia (blue-blind)
#846B7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5cb3;
/* rgb */ color: rgb(138, 92, 179);
/* oklch */ color: oklch(56.1% 0.137 306.9);
Tailwind
colors: {
  custom: {
    50: '#ae8bca',
    500: '#8a5cb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cb3;
$custom-light: #ae8bca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cb3",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 179
  },
  "hsl": {
    "h": 271.724,
    "s": 36.402,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56117,
    "c": 0.13735,
    "h": 306.9
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#8A5CB3
secondary
#B4C8A3
accent
#CC5B91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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