#8A4CB2#8A4CB2

#8A4CB2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.5% C 0.162 H 310.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A4CB2
RGBrgb(138, 76, 178)
HSLhsl(276, 40%, 50%)
HSVhsv(276, 57%, 70%)
CMYKcmyk(22.5%, 57.3%, 0%, 30.2%)
CIE-LABlab(43.93, 44.45, -44.16)
CIE-LCHlch(43.93, 62.66, 315.19°)
OKLaboklab(53.55% 0.1044 -0.124)
OKLCHoklch(53.55% 0.162 310.1)
XYZxyz(21.1000, 13.7869, 43.6604)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB2 #74B24C
analogous
#574CB2 #8A4CB2 #B24CA7
triadic
#8A4CB2 #B28A4C #4CB28A
tetradic
#8A4CB2 #B2574C #74B24C #4CA7B2
square
#8A4CB2 #B2574C #74B24C #4CA7B2
split-complementary
#8A4CB2 #A7B24C #4CB257
monochromatic
#47275C #693A87 #8A4CB2 #A676C5 #C2A1D7

Accessibility & contrast

On white

5.59
#8A4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A4CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CB2
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CB2#FFFFFF#000000##FFFFFF
##8A4CB21.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#4269B0
Tritanopia (blue-blind)
#855E78
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a4cb2;
/* rgb */ color: rgb(138, 76, 178);
/* oklch */ color: oklch(53.5% 0.162 310.1);
Tailwind
colors: {
  custom: {
    50: '#af81c9',
    500: '#8a4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb2;
$custom-light: #af81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb2",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 276.471,
    "s": 40.157,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53545,
    "c": 0.16215,
    "h": 310.1
  },
  "luminance": 0.13787
}

Semantic roles & 50–950 ramp

primary
#8A4CB2
secondary
#A8C496
accent
#D05887
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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