#8A2BAE#8A2BAE

#8A2BAE is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.3% C 0.203 H 314.7°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8A2BAE
RGBrgb(138, 43, 174)
HSLhsl(284, 60%, 43%)
HSVhsv(284, 75%, 68%)
CMYKcmyk(20.7%, 75.3%, 0%, 31.8%)
CIE-LABlab(38.18, 58.75, -51.02)
CIE-LCHlch(38.18, 77.81, 319.03°)
OKLaboklab(49.32% 0.1425 -0.1439)
OKLCHoklch(49.32% 0.203 314.7)
XYZxyz(18.9838, 10.1877, 41.0026)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BAE #4FAE2B
analogous
#482BAE #8A2BAE #AE2B91
triadic
#8A2BAE #AE8A2B #2BAE8A
tetradic
#8A2BAE #AE482B #4FAE2B #2B91AE
square
#8A2BAE #AE482B #4FAE2B #2B91AE
split-complementary
#8A2BAE #91AE2B #2BAE48
monochromatic
#3C134C #631F7D #8A2BAE #AB45D1 #C176DD

Accessibility & contrast

On white

6.91
#8A2BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A2BAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BAE
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BAE#FFFFFF#000000##FFFFFF
##8A2BAE1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#245CAB
Tritanopia (blue-blind)
#87486B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2bae;
/* rgb */ color: rgb(138, 43, 174);
/* oklch */ color: oklch(49.3% 0.203 314.7);
Tailwind
colors: {
  custom: {
    50: '#b06ec7',
    500: '#8a2bae',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bae;
$custom-light: #b06ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bae",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 283.511,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49321,
    "c": 0.20256,
    "h": 314.7
  },
  "luminance": 0.10187
}

Semantic roles & 50–950 ramp

primary
#8A2BAE
secondary
#87C570
accent
#E44470
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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