#8A4BB1#8A4BB1

#8A4BB1 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.163 H 310.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A4BB1
RGBrgb(138, 75, 177)
HSLhsl(277, 40%, 49%)
HSVhsv(277, 58%, 69%)
CMYKcmyk(22%, 57.6%, 0%, 30.6%)
CIE-LABlab(43.67, 44.75, -43.98)
CIE-LCHlch(43.67, 62.75, 315.50°)
OKLaboklab(53.34% 0.1057 -0.1235)
OKLCHoklch(53.34% 0.163 310.6)
XYZxyz(20.9316, 13.6102, 43.1108)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BB1 #72B14B
analogous
#574BB1 #8A4BB1 #B14BA5
triadic
#8A4BB1 #B18A4B #4BB18A
tetradic
#8A4BB1 #B1574B #72B14B #4BA5B1
square
#8A4BB1 #B1574B #72B14B #4BA5B1
split-complementary
#8A4BB1 #A5B14B #4BB157
monochromatic
#47275B #683986 #8A4BB1 #A675C4 #C2A0D7

Accessibility & contrast

On white

5.64
#8A4BB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A4BB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BB1
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BB1#FFFFFF#000000##FFFFFF
##8A4BB11.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A64B4
Deuteranopia (green-blind)
#4268AF
Tritanopia (blue-blind)
#855D77
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4bb1;
/* rgb */ color: rgb(138, 75, 177);
/* oklch */ color: oklch(53.3% 0.163 310.6);
Tailwind
colors: {
  custom: {
    50: '#af80c9',
    500: '#8a4bb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bb1;
$custom-light: #af80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bb1",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 177
  },
  "hsl": {
    "h": 277.059,
    "s": 40.476,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53338,
    "c": 0.16257,
    "h": 310.6
  },
  "luminance": 0.1361
}

Semantic roles & 50–950 ramp

primary
#8A4BB1
secondary
#A6C394
accent
#D05786
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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