#8A2A97#8A2A97

#8A2A97 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.183 H 322.7°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8A2A97
RGBrgb(138, 42, 151)
HSLhsl(293, 56%, 38%)
HSVhsv(293, 72%, 59%)
CMYKcmyk(8.6%, 72.2%, 0%, 40.8%)
CIE-LABlab(36.55, 54.64, -39.80)
CIE-LCHlch(36.55, 67.60, 323.93°)
OKLaboklab(47.68% 0.1457 -0.1111)
OKLCHoklch(47.68% 0.183 322.7)
XYZxyz(16.8946, 9.2945, 30.1763)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A97 #37972A
analogous
#532A97 #8A2A97 #972A6D
triadic
#8A2A97 #978A2A #2A978A
tetradic
#8A2A97 #97532A #37972A #2A6D97
square
#8A2A97 #97532A #37972A #2A6D97
split-complementary
#8A2A97 #6D972A #2A9753
monochromatic
#320F37 #5E1D67 #8A2A97 #B637C7 #C867D5

Accessibility & contrast

On white

7.35
#8A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A97
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A97#FFFFFF#000000##FFFFFF
##8A2A971.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#3A5A94
Tritanopia (blue-blind)
#8C3D5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2a97;
/* rgb */ color: rgb(138, 42, 151);
/* oklch */ color: oklch(47.7% 0.183 322.7);
Tailwind
colors: {
  custom: {
    50: '#b06db6',
    500: '#8a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a97;
$custom-light: #b06db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a97",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 292.844,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47682,
    "c": 0.1832,
    "h": 322.7
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#8A2A97
secondary
#6DBB62
accent
#E0485A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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