#8A4ACB#8A4ACB

#8A4ACB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.9% C 0.193 H 303.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A4ACB
RGBrgb(138, 74, 203)
HSLhsl(270, 55%, 54%)
HSVhsv(270, 64%, 80%)
CMYKcmyk(32%, 63.5%, 0%, 20.4%)
CIE-LABlab(45.10, 51.38, -56.84)
CIE-LCHlch(45.10, 76.62, 312.11°)
OKLaboklab(54.9% 0.1064 -0.1612)
OKLCHoklch(54.9% 0.193 303.4)
XYZxyz(23.7070, 14.6127, 58.0599)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4ACB #8BCB4A
analogous
#4A4BCB #8A4ACB #CA4ACB
triadic
#8A4ACB #CB8A4A #4ACB8A
tetradic
#8A4ACB #CB4A4B #8BCB4A #4ACBCA
square
#8A4ACB #CB4A4B #8BCB4A #4ACBCA
split-complementary
#8A4ACB #CBCA4A #4BCB4A
monochromatic
#4D2378 #6B30A8 #8A4ACB #A97AD9 #C7A9E6

Accessibility & contrast

On white

5.35
#8A4ACB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8A4ACB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4ACB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4ACB#FFFFFF#000000##FFFFFF
##8A4ACB1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#226AC8
Tritanopia (blue-blind)
#7E6684
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4acb;
/* rgb */ color: rgb(138, 74, 203);
/* oklch */ color: oklch(54.9% 0.193 303.4);
Tailwind
colors: {
  custom: {
    50: '#b180dc',
    500: '#8a4acb',
    950: '#000000',
  },
}
SCSS
$custom: #8a4acb;
$custom-light: #b180dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4acb",
  "rgb": {
    "r": 138,
    "g": 74,
    "b": 203
  },
  "hsl": {
    "h": 269.767,
    "s": 55.365,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54898,
    "c": 0.19317,
    "h": 303.4
  },
  "luminance": 0.14613
}

Semantic roles & 50–950 ramp

primary
#8A4ACB
secondary
#B9D49D
accent
#DF4994
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A4ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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