#8A2A91#8A2A91

#8A2A91 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.178 H 325.0°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#8A2A91
RGBrgb(138, 42, 145)
HSLhsl(296, 55%, 37%)
HSVhsv(296, 71%, 57%)
CMYKcmyk(4.8%, 71%, 0%, 43.1%)
CIE-LABlab(36.18, 53.53, -36.72)
CIE-LCHlch(36.18, 64.92, 325.56°)
OKLaboklab(47.31% 0.1458 -0.1021)
OKLCHoklch(47.31% 0.178 325)
XYZxyz(16.4196, 9.1046, 27.6751)
Luminance0.0910 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A91 #31912A
analogous
#572A91 #8A2A91 #912A65
triadic
#8A2A91 #918A2A #2A918A
tetradic
#8A2A91 #91572A #31912A #2A6591
square
#8A2A91 #91572A #31912A #2A6591
split-complementary
#8A2A91 #65912A #2A9157
monochromatic
#300F32 #5D1C62 #8A2A91 #B738C0 #CA63D2

Accessibility & contrast

On white

7.44
#8A2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A91
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A91#FFFFFF#000000##FFFFFF
##8A2A911.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104E94
Deuteranopia (green-blind)
#3E598E
Tritanopia (blue-blind)
#8D3B5A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2a91;
/* rgb */ color: rgb(138, 42, 145);
/* oklch */ color: oklch(47.3% 0.178 325.0);
Tailwind
colors: {
  custom: {
    50: '#af6db2',
    500: '#8a2a91',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a91;
$custom-light: #af6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a91",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 295.922,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47307,
    "c": 0.17802,
    "h": 325
  },
  "luminance": 0.09104
}

Semantic roles & 50–950 ramp

primary
#8A2A91
secondary
#65B85F
accent
#DE4954
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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