#8A2A99#8A2A99

#8A2A99 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.185 H 321.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8A2A99
RGBrgb(138, 42, 153)
HSLhsl(292, 57%, 38%)
HSVhsv(292, 73%, 60%)
CMYKcmyk(9.8%, 72.5%, 0%, 40%)
CIE-LABlab(36.67, 55.02, -40.82)
CIE-LCHlch(36.67, 68.50, 323.43°)
OKLaboklab(47.81% 0.1456 -0.1141)
OKLCHoklch(47.81% 0.185 321.9)
XYZxyz(17.0584, 9.3601, 31.0390)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A99 #39992A
analogous
#522A99 #8A2A99 #992A70
triadic
#8A2A99 #998A2A #2A998A
tetradic
#8A2A99 #99522A #39992A #2A7099
square
#8A2A99 #99522A #39992A #2A7099
split-complementary
#8A2A99 #70992A #2A9952
monochromatic
#331039 #5F1D69 #8A2A99 #B538C8 #C768D6

Accessibility & contrast

On white

7.31
#8A2A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A2A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A99
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A99#FFFFFF#000000##FFFFFF
##8A2A991.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#395A96
Tritanopia (blue-blind)
#8C3E5F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2a99;
/* rgb */ color: rgb(138, 42, 153);
/* oklch */ color: oklch(47.8% 0.185 321.9);
Tailwind
colors: {
  custom: {
    50: '#b06db7',
    500: '#8a2a99',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a99;
$custom-light: #b06db7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a99",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 291.892,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47809,
    "c": 0.18495,
    "h": 321.9
  },
  "luminance": 0.09359
}

Semantic roles & 50–950 ramp

primary
#8A2A99
secondary
#6FBC63
accent
#E0485C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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