#8A2AB8#8A2AB8

#8A2AB8 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.213 H 311.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8A2AB8
RGBrgb(138, 42, 184)
HSLhsl(281, 63%, 44%)
HSVhsv(281, 77%, 72%)
CMYKcmyk(25%, 77.2%, 0%, 27.8%)
CIE-LABlab(38.76, 61.16, -56.00)
CIE-LCHlch(38.76, 82.92, 317.52°)
OKLaboklab(49.96% 0.1417 -0.1586)
OKLCHoklch(49.96% 0.213 311.8)
XYZxyz(19.9593, 10.5204, 46.3173)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AB8 #58B82A
analogous
#432AB8 #8A2AB8 #B82A9F
triadic
#8A2AB8 #B88A2A #2AB88A
tetradic
#8A2AB8 #B8432A #58B82A #2A9FB8
square
#8A2AB8 #B8432A #58B82A #2A9FB8
split-complementary
#8A2AB8 #9FB82A #2AB843
monochromatic
#3F1354 #651F86 #8A2AB8 #A84AD6 #C07BE1

Accessibility & contrast

On white

6.77
#8A2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A2AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2AB8
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AB8#FFFFFF#000000##FFFFFF
##8A2AB81.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#0D5DB5
Tritanopia (blue-blind)
#844C70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2ab8;
/* rgb */ color: rgb(138, 42, 184);
/* oklch */ color: oklch(50.0% 0.213 311.8);
Tailwind
colors: {
  custom: {
    50: '#b16ece',
    500: '#8a2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ab8;
$custom-light: #b16ece;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ab8",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 280.563,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49957,
    "c": 0.21268,
    "h": 311.8
  },
  "luminance": 0.1052
}

Semantic roles & 50–950 ramp

primary
#8A2AB8
secondary
#90C975
accent
#E64277
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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