#8A2AB3#8A2AB3

#8A2AB3 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.208 H 313.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8A2AB3
RGBrgb(138, 42, 179)
HSLhsl(282, 62%, 43%)
HSVhsv(282, 77%, 70%)
CMYKcmyk(22.9%, 76.5%, 0%, 29.8%)
CIE-LABlab(38.40, 60.13, -53.63)
CIE-LCHlch(38.40, 80.57, 318.27°)
OKLaboklab(49.59% 0.1426 -0.1516)
OKLCHoklch(49.59% 0.208 313.3)
XYZxyz(19.4444, 10.3145, 43.6057)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2AB3 #53B32A
analogous
#452AB3 #8A2AB3 #B32A97
triadic
#8A2AB3 #B38A2A #2AB38A
tetradic
#8A2AB3 #B3452A #53B32A #2A97B3
square
#8A2AB3 #B3452A #53B32A #2A97B3
split-complementary
#8A2AB3 #97B32A #2AB345
monochromatic
#3E1350 #641E81 #8A2AB3 #A946D4 #C078DF

Accessibility & contrast

On white

6.86
#8A2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A2AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2AB3
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2AB3#FFFFFF#000000##FFFFFF
##8A2AB31.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#1A5CB0
Tritanopia (blue-blind)
#864A6D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2ab3;
/* rgb */ color: rgb(138, 42, 179);
/* oklch */ color: oklch(49.6% 0.208 313.3);
Tailwind
colors: {
  custom: {
    50: '#b16ecb',
    500: '#8a2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ab3;
$custom-light: #b16ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ab3",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 282.044,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4959,
    "c": 0.20814,
    "h": 313.3
  },
  "luminance": 0.10314
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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