#8A2A9B#8A2A9B

#8A2A9B is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.187 H 321.2°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A2A9B
RGBrgb(138, 42, 155)
HSLhsl(291, 57%, 39%)
HSVhsv(291, 73%, 61%)
CMYKcmyk(11%, 72.9%, 0%, 39.2%)
CIE-LABlab(36.79, 55.39, -41.83)
CIE-LCHlch(36.79, 69.41, 322.94°)
OKLaboklab(47.94% 0.1455 -0.117)
OKLCHoklch(47.94% 0.187 321.2)
XYZxyz(17.2249, 9.4267, 31.9162)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A9B #3B9B2A
analogous
#512A9B #8A2A9B #9B2A73
triadic
#8A2A9B #9B8A2A #2A9B8A
tetradic
#8A2A9B #9B512A #3B9B2A #2A739B
square
#8A2A9B #9B512A #3B9B2A #2A739B
split-complementary
#8A2A9B #739B2A #2A9B51
monochromatic
#34103B #5F1D6B #8A2A9B #B439C9 #C669D6

Accessibility & contrast

On white

7.28
#8A2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2A9B
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A9B#FFFFFF#000000##FFFFFF
##8A2A9B1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#375A98
Tritanopia (blue-blind)
#8B3F60
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2a9b;
/* rgb */ color: rgb(138, 42, 155);
/* oklch */ color: oklch(47.9% 0.187 321.2);
Tailwind
colors: {
  custom: {
    50: '#b06db9',
    500: '#8a2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a9b;
$custom-light: #b06db9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a9b",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 290.973,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.1867,
    "h": 321.2
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#8A2A9B
secondary
#71BD64
accent
#E1475E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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