#8A2A96#8A2A96

#8A2A96 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.182 H 323.1°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8A2A96
RGBrgb(138, 42, 150)
HSLhsl(293, 56%, 38%)
HSVhsv(293, 72%, 59%)
CMYKcmyk(8%, 72%, 0%, 41.2%)
CIE-LABlab(36.48, 54.45, -39.29)
CIE-LCHlch(36.48, 67.15, 324.19°)
OKLaboklab(47.62% 0.1457 -0.1096)
OKLCHoklch(47.62% 0.182 323.1)
XYZxyz(16.8137, 9.2622, 29.7504)
Luminance0.0926 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A96 #36962A
analogous
#542A96 #8A2A96 #962A6C
triadic
#8A2A96 #968A2A #2A968A
tetradic
#8A2A96 #96542A #36962A #2A6C96
square
#8A2A96 #96542A #36962A #2A6C96
split-complementary
#8A2A96 #6C962A #2A9654
monochromatic
#320F36 #5E1D66 #8A2A96 #B637C6 #C866D4

Accessibility & contrast

On white

7.36
#8A2A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A2A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A96
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A96#FFFFFF#000000##FFFFFF
##8A2A961.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024F99
Deuteranopia (green-blind)
#3B5A93
Tritanopia (blue-blind)
#8C3D5D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2a96;
/* rgb */ color: rgb(138, 42, 150);
/* oklch */ color: oklch(47.6% 0.182 323.1);
Tailwind
colors: {
  custom: {
    50: '#af6db5',
    500: '#8a2a96',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a96;
$custom-light: #af6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a96",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 150
  },
  "hsl": {
    "h": 293.333,
    "s": 56.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47618,
    "c": 0.18234,
    "h": 323.1
  },
  "luminance": 0.09261
}

Semantic roles & 50–950 ramp

primary
#8A2A96
secondary
#6BBA61
accent
#E04859
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A96

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

Preview Lab → · Contrast checker → · Palette generator →

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