#8A2AB2#8A2AB2

#8A2AB2 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.5% C 0.207 H 313.6°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A2AB2
RGBrgb(138, 42, 178)
HSLhsl(282, 62%, 43%)
HSVhsv(282, 76%, 70%)
CMYKcmyk(22.5%, 76.4%, 0%, 30.2%)
CIE-LABlab(38.33, 59.92, -53.15)
CIE-LCHlch(38.33, 80.10, 318.43°)
OKLaboklab(49.52% 0.1428 -0.1502)
OKLCHoklch(49.52% 0.207 313.6)
XYZxyz(19.3437, 10.2742, 43.0750)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AB2 #52B22A
analogous
#462AB2 #8A2AB2 #B22A96
triadic
#8A2AB2 #B28A2A #2AB28A
tetradic
#8A2AB2 #B2462A #52B22A #2A96B2
square
#8A2AB2 #B2462A #52B22A #2A96B2
split-complementary
#8A2AB2 #96B22A #2AB246
monochromatic
#3D134F #641E80 #8A2AB2 #AA46D3 #C177DF

Accessibility & contrast

On white

6.87
#8A2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A2AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2AB2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AB2#FFFFFF#000000##FFFFFF
##8A2AB21.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#1C5CAF
Tritanopia (blue-blind)
#86496D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2ab2;
/* rgb */ color: rgb(138, 42, 178);
/* oklch */ color: oklch(49.5% 0.207 313.6);
Tailwind
colors: {
  custom: {
    50: '#b16eca',
    500: '#8a2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ab2;
$custom-light: #b16eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ab2",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 282.353,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49518,
    "c": 0.20724,
    "h": 313.6
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#8A2AB2
secondary
#8AC771
accent
#E54373
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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