#8A4CB7#8A4CB7

#8A4CB7 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.168 H 308.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8A4CB7
RGBrgb(138, 76, 183)
HSLhsl(275, 43%, 51%)
HSVhsv(275, 58%, 72%)
CMYKcmyk(24.6%, 58.5%, 0%, 28.2%)
CIE-LABlab(44.22, 45.60, -46.62)
CIE-LCHlch(44.22, 65.22, 314.37°)
OKLaboklab(53.86% 0.1045 -0.1313)
OKLCHoklch(53.86% 0.168 308.5)
XYZxyz(21.6112, 13.9914, 46.3527)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CB7 #79B74C
analogous
#544CB7 #8A4CB7 #B74CAE
triadic
#8A4CB7 #B78A4C #4CB78A
tetradic
#8A4CB7 #B7544C #79B74C #4CAEB7
square
#8A4CB7 #B7544C #79B74C #4CAEB7
split-complementary
#8A4CB7 #AEB74C #4CB754
monochromatic
#492761 #6A398D #8A4CB7 #A778C9 #C3A3DA

Accessibility & contrast

On white

5.53
#8A4CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8A4CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CB7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CB7#FFFFFF#000000##FFFFFF
##8A4CB71.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BA
Deuteranopia (green-blind)
#3E69B4
Tritanopia (blue-blind)
#84607A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4cb7;
/* rgb */ color: rgb(138, 76, 183);
/* oklch */ color: oklch(53.9% 0.168 308.5);
Tailwind
colors: {
  custom: {
    50: '#af81cd',
    500: '#8a4cb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cb7;
$custom-light: #af81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cb7",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 274.766,
    "s": 42.629,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53856,
    "c": 0.1678,
    "h": 308.5
  },
  "luminance": 0.13991
}

Semantic roles & 50–950 ramp

primary
#8A4CB7
secondary
#ACC798
accent
#D2558A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A4CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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