#8A2AB4#8A2AB4

#8A2AB4 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.7% C 0.209 H 313.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A2AB4
RGBrgb(138, 42, 180)
HSLhsl(282, 62%, 44%)
HSVhsv(282, 77%, 71%)
CMYKcmyk(23.3%, 76.7%, 0%, 29.4%)
CIE-LABlab(38.47, 60.33, -54.10)
CIE-LCHlch(38.47, 81.04, 318.12°)
OKLaboklab(49.66% 0.1425 -0.153)
OKLCHoklch(49.66% 0.209 313)
XYZxyz(19.5459, 10.3551, 44.1403)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AB4 #54B42A
analogous
#452AB4 #8A2AB4 #B42A99
triadic
#8A2AB4 #B48A2A #2AB48A
tetradic
#8A2AB4 #B4452A #54B42A #2A99B4
square
#8A2AB4 #B4452A #54B42A #2A99B4
split-complementary
#8A2AB4 #99B42A #2AB445
monochromatic
#3E1351 #641E82 #8A2AB4 #A947D4 #C079E0

Accessibility & contrast

On white

6.84
#8A2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A2AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2AB4
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AB4#FFFFFF#000000##FFFFFF
##8A2AB41.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#185DB1
Tritanopia (blue-blind)
#854A6E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2ab4;
/* rgb */ color: rgb(138, 42, 180);
/* oklch */ color: oklch(49.7% 0.209 313.0);
Tailwind
colors: {
  custom: {
    50: '#b16ecb',
    500: '#8a2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ab4;
$custom-light: #b16ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ab4",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 281.739,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49663,
    "c": 0.20905,
    "h": 313
  },
  "luminance": 0.10354
}

Semantic roles & 50–950 ramp

primary
#8A2AB4
secondary
#8CC872
accent
#E54374
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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