#8A4BA2#8A4BA2

#8A4BA2 is a mid, vivid purple. Relative luminance 0.130; OKLCH L 52.5% C 0.146 H 315.9°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8A4BA2
RGBrgb(138, 75, 162)
HSLhsl(283, 37%, 46%)
HSVhsv(283, 54%, 64%)
CMYKcmyk(14.8%, 53.7%, 0%, 36.5%)
CIE-LABlab(42.83, 41.41, -36.43)
CIE-LCHlch(42.83, 55.15, 318.65°)
OKLaboklab(52.45% 0.1047 -0.1015)
OKLCHoklch(52.45% 0.146 315.9)
XYZxyz(19.5179, 13.0447, 35.6651)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BA2 #63A24B
analogous
#5F4BA2 #8A4BA2 #A24B8F
triadic
#8A4BA2 #A28A4B #4BA28A
tetradic
#8A4BA2 #A25F4B #63A24B #4B8FA2
square
#8A4BA2 #A25F4B #63A24B #4B8FA2
split-complementary
#8A4BA2 #8FA24B #4BA25F
monochromatic
#43244E #663878 #8A4BA2 #A76EBC #C098CF

Accessibility & contrast

On white

5.82
#8A4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BA2
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BA2#FFFFFF#000000##FFFFFF
##8A4BA21.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#4C67A0
Tritanopia (blue-blind)
#89596F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a4ba2;
/* rgb */ color: rgb(138, 75, 162);
/* oklch */ color: oklch(52.5% 0.146 315.9);
Tailwind
colors: {
  custom: {
    50: '#ae80be',
    500: '#8a4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ba2;
$custom-light: #ae80be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ba2",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 283.448,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52451,
    "c": 0.14586,
    "h": 315.9
  },
  "luminance": 0.13044
}

Semantic roles & 50–950 ramp

primary
#8A4BA2
secondary
#9ABC8D
accent
#CD5B7A
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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