#8A4CBA#8A4CBA

#8A4CBA is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.0% C 0.171 H 307.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A4CBA
RGBrgb(138, 76, 186)
HSLhsl(274, 44%, 51%)
HSVhsv(274, 59%, 73%)
CMYKcmyk(25.8%, 59.1%, 0%, 27.1%)
CIE-LABlab(44.40, 46.30, -48.09)
CIE-LCHlch(44.40, 66.76, 313.92°)
OKLaboklab(54.05% 0.1046 -0.1355)
OKLCHoklch(54.05% 0.171 307.6)
XYZxyz(21.9268, 14.1176, 48.0147)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CBA #7CBA4C
analogous
#534CBA #8A4CBA #BA4CB3
triadic
#8A4CBA #BA8A4C #4CBA8A
tetradic
#8A4CBA #BA534C #7CBA4C #4CB3BA
square
#8A4CBA #BA534C #7CBA4C #4CB3BA
split-complementary
#8A4CBA #B3BA4C #4CBA53
monochromatic
#4A2765 #6A3891 #8A4CBA #A778CB #C4A4DC

Accessibility & contrast

On white

5.49
#8A4CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8A4CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CBA
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CBA#FFFFFF#000000##FFFFFF
##8A4CBA1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BE
Deuteranopia (green-blind)
#3B6AB7
Tritanopia (blue-blind)
#83617C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a4cba;
/* rgb */ color: rgb(138, 76, 186);
/* oklch */ color: oklch(54.0% 0.171 307.6);
Tailwind
colors: {
  custom: {
    50: '#af81cf',
    500: '#8a4cba',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cba;
$custom-light: #af81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cba",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 186
  },
  "hsl": {
    "h": 273.818,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.54046,
    "c": 0.1712,
    "h": 307.6
  },
  "luminance": 0.14117
}

Semantic roles & 50–950 ramp

primary
#8A4CBA
secondary
#AEC999
accent
#D4548C
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A4CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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