#8A2CB9#8A2CB9

#8A2CB9 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.212 H 311.4°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8A2CB9
RGBrgb(138, 44, 185)
HSLhsl(280, 62%, 45%)
HSVhsv(280, 76%, 73%)
CMYKcmyk(25.4%, 76.2%, 0%, 27.5%)
CIE-LABlab(39.08, 60.64, -56.07)
CIE-LCHlch(39.08, 82.59, 317.25°)
OKLaboklab(50.21% 0.1398 -0.1588)
OKLCHoklch(50.21% 0.212 311.4)
XYZxyz(20.1372, 10.7079, 46.8956)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CB9 #5BB92C
analogous
#442CB9 #8A2CB9 #B92CA2
triadic
#8A2CB9 #B98A2C #2CB98A
tetradic
#8A2CB9 #B9442C #5BB92C #2CA2B9
square
#8A2CB9 #B9442C #5BB92C #2CA2B9
split-complementary
#8A2CB9 #A2B92C #2CB944
monochromatic
#401456 #652088 #8A2CB9 #A84DD5 #C07FE1

Accessibility & contrast

On white

6.68
#8A2CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A2CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CB9
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CB9#FFFFFF#000000##FFFFFF
##8A2CB91.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#0E5EB6
Tritanopia (blue-blind)
#844D71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2cb9;
/* rgb */ color: rgb(138, 44, 185);
/* oklch */ color: oklch(50.2% 0.212 311.4);
Tailwind
colors: {
  custom: {
    50: '#b16fcf',
    500: '#8a2cb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cb9;
$custom-light: #b16fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cb9",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 280,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50208,
    "c": 0.21155,
    "h": 311.4
  },
  "luminance": 0.10707
}

Semantic roles & 50–950 ramp

primary
#8A2CB9
secondary
#93C978
accent
#E54379
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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