#8A2CB6#8A2CB6

#8A2CB6 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.209 H 312.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A2CB6
RGBrgb(138, 44, 182)
HSLhsl(281, 61%, 44%)
HSVhsv(281, 76%, 71%)
CMYKcmyk(24.2%, 75.8%, 0%, 28.6%)
CIE-LABlab(38.87, 60.02, -54.64)
CIE-LCHlch(38.87, 81.17, 317.68°)
OKLaboklab(49.99% 0.1403 -0.1546)
OKLCHoklch(49.99% 0.209 312.2)
XYZxyz(19.8239, 10.5826, 45.2453)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CB6 #58B62C
analogous
#452CB6 #8A2CB6 #B62C9D
triadic
#8A2CB6 #B68A2C #2CB68A
tetradic
#8A2CB6 #B6452C #58B62C #2C9DB6
square
#8A2CB6 #B6452C #58B62C #2C9DB6
split-complementary
#8A2CB6 #9DB62C #2CB645
monochromatic
#3F1453 #652085 #8A2CB6 #A84CD4 #C07DE0

Accessibility & contrast

On white

6.74
#8A2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A2CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CB6
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CB6#FFFFFF#000000##FFFFFF
##8A2CB61.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#175DB3
Tritanopia (blue-blind)
#854C70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2cb6;
/* rgb */ color: rgb(138, 44, 182);
/* oklch */ color: oklch(50.0% 0.209 312.2);
Tailwind
colors: {
  custom: {
    50: '#b16fcd',
    500: '#8a2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cb6;
$custom-light: #b16fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cb6",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 280.87,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49988,
    "c": 0.2088,
    "h": 312.2
  },
  "luminance": 0.10582
}

Semantic roles & 50–950 ramp

primary
#8A2CB6
secondary
#90C876
accent
#E44477
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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