#8A2A88#8A2A88

#8A2A88 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.170 H 328.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#8A2A88
RGBrgb(138, 42, 136)
HSLhsl(301, 53%, 35%)
HSVhsv(301, 70%, 54%)
CMYKcmyk(0%, 69.6%, 1.4%, 45.9%)
CIE-LABlab(35.67, 51.93, -32.00)
CIE-LCHlch(35.67, 61.00, 328.36°)
OKLaboklab(46.77% 0.1457 -0.0884)
OKLCHoklch(46.77% 0.17 328.8)
XYZxyz(15.7530, 8.8379, 24.1640)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A88 #2A8A2C
analogous
#5C2A8A #8A2A88 #8A2A58
triadic
#8A2A88 #888A2A #2A888A
tetradic
#8A2A88 #8A5C2A #2A8A2C #2A588A
square
#8A2A88 #8A5C2A #2A8A2C #2A588A
split-complementary
#8A2A88 #588A2A #2A8A5C
monochromatic
#2C0D2C #5B1C5A #8A2A88 #B938B6 #CF60CC

Accessibility & contrast

On white

7.59
#8A2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A88
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A88#FFFFFF#000000##FFFFFF
##8A2A881.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4C8B
Deuteranopia (green-blind)
#445886
Tritanopia (blue-blind)
#8F3756
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2a88;
/* rgb */ color: rgb(138, 42, 136);
/* oklch */ color: oklch(46.8% 0.170 328.8);
Tailwind
colors: {
  custom: {
    50: '#af6cab',
    500: '#8a2a88',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a88;
$custom-light: #af6cab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a88",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 301.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46771,
    "c": 0.17043,
    "h": 328.8
  },
  "luminance": 0.08837
}

Semantic roles & 50–950 ramp

primary
#8A2A88
secondary
#5BB45D
accent
#DD4E4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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