#8A5BA2#8A5BA2

#8A5BA2 is a mid, moderate violet. Relative luminance 0.155; OKLCH L 55.0% C 0.118 H 313.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A5BA2
RGBrgb(138, 91, 162)
HSLhsl(280, 28%, 50%)
HSVhsv(280, 44%, 64%)
CMYKcmyk(14.8%, 43.8%, 0%, 36.5%)
CIE-LABlab(46.30, 32.48, -30.97)
CIE-LCHlch(46.30, 44.88, 316.36°)
OKLaboklab(55.03% 0.0813 -0.0858)
OKLCHoklch(55.03% 0.118 313.5)
XYZxyz(20.7428, 15.4945, 36.0735)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BA2 #73A25B
analogous
#675BA2 #8A5BA2 #A25B97
triadic
#8A5BA2 #A28A5B #5BA28A
tetradic
#8A5BA2 #A2675B #73A25B #5B97A2
square
#8A5BA2 #A2675B #73A25B #5B97A2
split-complementary
#8A5BA2 #97A25B #5BA267
monochromatic
#472F54 #69457B #8A5BA2 #A682B9 #C2A9CF

Accessibility & contrast

On white

5.12
#8A5BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A5BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BA2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BA2#FFFFFF#000000##FFFFFF
##8A5BA21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#596FA0
Tritanopia (blue-blind)
#886577
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5ba2;
/* rgb */ color: rgb(138, 91, 162);
/* oklch */ color: oklch(55.0% 0.118 313.5);
Tailwind
colors: {
  custom: {
    50: '#ad8abe',
    500: '#8a5ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ba2;
$custom-light: #ad8abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ba2",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 279.718,
    "s": 28.063,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55034,
    "c": 0.11821,
    "h": 313.5
  },
  "luminance": 0.15494
}

Semantic roles & 50–950 ramp

primary
#8A5BA2
secondary
#A7BD9C
accent
#C46384
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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