#8A2EB8#8A2EB8

#8A2EB8 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.209 H 311.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8A2EB8
RGBrgb(138, 46, 184)
HSLhsl(280, 60%, 45%)
HSVhsv(280, 75%, 72%)
CMYKcmyk(25%, 75%, 0%, 27.8%)
CIE-LABlab(39.27, 59.68, -55.17)
CIE-LCHlch(39.27, 81.28, 317.25°)
OKLaboklab(50.32% 0.1382 -0.1562)
OKLCHoklch(50.32% 0.209 311.5)
XYZxyz(20.1083, 10.8185, 46.3670)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EB8 #5CB82E
analogous
#452EB8 #8A2EB8 #B82EA1
triadic
#8A2EB8 #B88A2E #2EB88A
tetradic
#8A2EB8 #B8452E #5CB82E #2EA1B8
square
#8A2EB8 #B8452E #5CB82E #2EA1B8
split-complementary
#8A2EB8 #A1B82E #2EB845
monochromatic
#411656 #652287 #8A2EB8 #A750D3 #C081DF

Accessibility & contrast

On white

6.64
#8A2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A2EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EB8
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EB8#FFFFFF#000000##FFFFFF
##8A2EB81.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#155EB5
Tritanopia (blue-blind)
#844E71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2eb8;
/* rgb */ color: rgb(138, 46, 184);
/* oklch */ color: oklch(50.3% 0.209 311.5);
Tailwind
colors: {
  custom: {
    50: '#b170ce',
    500: '#8a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eb8;
$custom-light: #b170ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eb8",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50318,
    "c": 0.20852,
    "h": 311.5
  },
  "luminance": 0.10818
}

Semantic roles & 50–950 ramp

primary
#8A2EB8
secondary
#94C879
accent
#E34579
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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