#8A2B9A#8A2B9A

#8A2B9A is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.185 H 321.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8A2B9A
RGBrgb(138, 43, 154)
HSLhsl(291, 56%, 39%)
HSVhsv(291, 72%, 60%)
CMYKcmyk(10.4%, 72.1%, 0%, 39.6%)
CIE-LABlab(36.86, 54.82, -41.11)
CIE-LCHlch(36.86, 68.53, 323.13°)
OKLaboklab(47.97% 0.1445 -0.1149)
OKLCHoklch(47.97% 0.185 321.5)
XYZxyz(17.1772, 9.4651, 31.4877)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B9A #3B9A2B
analogous
#522B9A #8A2B9A #9A2B72
triadic
#8A2B9A #9A8A2B #2B9A8A
tetradic
#8A2B9A #9A522B #3B9A2B #2B729A
square
#8A2B9A #9A522B #3B9A2B #2B729A
split-complementary
#8A2B9A #729A2B #2B9A52
monochromatic
#34103A #5F1E6A #8A2B9A #B43AC8 #C66AD5

Accessibility & contrast

On white

7.26
#8A2B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A2B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B9A
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B9A#FFFFFF#000000##FFFFFF
##8A2B9A1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#395A97
Tritanopia (blue-blind)
#8B3F60
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2b9a;
/* rgb */ color: rgb(138, 43, 154);
/* oklch */ color: oklch(48.0% 0.185 321.5);
Tailwind
colors: {
  custom: {
    50: '#b06eb8',
    500: '#8a2b9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b9a;
$custom-light: #b06eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b9a",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 291.351,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47969,
    "c": 0.18464,
    "h": 321.5
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#8A2B9A
secondary
#71BC65
accent
#E0485E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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