#8A2AB7#8A2AB7

#8A2AB7 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.212 H 312.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A2AB7
RGBrgb(138, 42, 183)
HSLhsl(281, 63%, 44%)
HSVhsv(281, 77%, 72%)
CMYKcmyk(24.6%, 77%, 0%, 28.2%)
CIE-LABlab(38.69, 60.95, -55.53)
CIE-LCHlch(38.69, 82.45, 317.67°)
OKLaboklab(49.88% 0.1419 -0.1572)
OKLCHoklch(49.88% 0.212 312.1)
XYZxyz(19.8549, 10.4787, 45.7672)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AB7 #57B72A
analogous
#442AB7 #8A2AB7 #B72A9E
triadic
#8A2AB7 #B78A2A #2AB78A
tetradic
#8A2AB7 #B7442A #57B72A #2A9EB7
square
#8A2AB7 #B7442A #57B72A #2A9EB7
split-complementary
#8A2AB7 #9EB72A #2AB744
monochromatic
#3F1353 #641F85 #8A2AB7 #A849D5 #C07BE1

Accessibility & contrast

On white

6.78
#8A2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2AB7
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AB7#FFFFFF#000000##FFFFFF
##8A2AB71.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#105DB4
Tritanopia (blue-blind)
#854C70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2ab7;
/* rgb */ color: rgb(138, 42, 183);
/* oklch */ color: oklch(49.9% 0.212 312.1);
Tailwind
colors: {
  custom: {
    50: '#b16ecd',
    500: '#8a2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ab7;
$custom-light: #b16ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ab7",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 280.851,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49883,
    "c": 0.21177,
    "h": 312.1
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#8A2AB7
secondary
#8FC974
accent
#E64276
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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