#8A4CB5#8A4CB5

#8A4CB5 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.7% C 0.166 H 309.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A4CB5
RGBrgb(138, 76, 181)
HSLhsl(275, 42%, 50%)
HSVhsv(275, 58%, 71%)
CMYKcmyk(23.8%, 58%, 0%, 29%)
CIE-LABlab(44.10, 45.14, -45.64)
CIE-LCHlch(44.10, 64.19, 314.68°)
OKLaboklab(53.73% 0.1045 -0.1284)
OKLCHoklch(53.73% 0.166 309.1)
XYZxyz(21.4045, 13.9087, 45.2642)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB5 #77B54C
analogous
#564CB5 #8A4CB5 #B54CAB
triadic
#8A4CB5 #B58A4C #4CB58A
tetradic
#8A4CB5 #B5564C #77B54C #4CABB5
square
#8A4CB5 #B5564C #77B54C #4CABB5
split-complementary
#8A4CB5 #ABB54C #4CB556
monochromatic
#48275F #69398B #8A4CB5 #A677C7 #C3A3D9

Accessibility & contrast

On white

5.55
#8A4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8A4CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CB5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CB5#FFFFFF#000000##FFFFFF
##8A4CB51.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2766B8
Deuteranopia (green-blind)
#3F69B2
Tritanopia (blue-blind)
#845F79
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4cb5;
/* rgb */ color: rgb(138, 76, 181);
/* oklch */ color: oklch(53.7% 0.166 309.1);
Tailwind
colors: {
  custom: {
    50: '#af81cc',
    500: '#8a4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb5;
$custom-light: #af81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb5",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 275.429,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.16553,
    "h": 309.1
  },
  "luminance": 0.13908
}

Semantic roles & 50–950 ramp

primary
#8A4CB5
secondary
#AAC697
accent
#D15689
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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