#8A2BB1#8A2BB1

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

Color values

HEX#8A2BB1
RGBrgb(138, 43, 177)
HSLhsl(283, 61%, 43%)
HSVhsv(283, 76%, 69%)
CMYKcmyk(22%, 75.7%, 0%, 30.6%)
CIE-LABlab(38.39, 59.36, -52.46)
CIE-LCHlch(38.39, 79.22, 318.53°)
OKLaboklab(49.54% 0.1421 -0.1482)
OKLCHoklch(49.54% 0.205 313.8)
XYZxyz(19.2795, 10.3060, 42.5601)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BB1 #52B12B
analogous
#472BB1 #8A2BB1 #B12B95
triadic
#8A2BB1 #B18A2B #2BB18A
tetradic
#8A2BB1 #B1472B #52B12B #2B95B1
square
#8A2BB1 #B1472B #52B12B #2B95B1
split-complementary
#8A2BB1 #95B12B #2BB147
monochromatic
#3D134F #641F80 #8A2BB1 #AA47D2 #C178DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2BB1#FFFFFF#000000##FFFFFF
##8A2BB11.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)
#0055B5
Deuteranopia (green-blind)
#1F5DAE
Tritanopia (blue-blind)
#86496D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2bb1;
/* rgb */ color: rgb(138, 43, 177);
/* oklch */ color: oklch(49.5% 0.205 313.8);
Tailwind
colors: {
  custom: {
    50: '#b16fc9',
    500: '#8a2bb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bb1;
$custom-light: #b16fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bb1",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 282.537,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49535,
    "c": 0.20528,
    "h": 313.8
  },
  "luminance": 0.10305
}

Semantic roles & 50–950 ramp

primary
#8A2BB1
secondary
#8AC672
accent
#E44472
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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