#8A2A94#8A2A94

#8A2A94 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.181 H 323.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8A2A94
RGBrgb(138, 42, 148)
HSLhsl(294, 56%, 37%)
HSVhsv(294, 72%, 58%)
CMYKcmyk(6.8%, 71.6%, 0%, 42%)
CIE-LABlab(36.36, 54.08, -38.26)
CIE-LCHlch(36.36, 66.25, 324.72°)
OKLaboklab(47.49% 0.1458 -0.1066)
OKLCHoklch(47.49% 0.181 323.8)
XYZxyz(16.6540, 9.1983, 28.9095)
Luminance0.0920 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A94 #34942A
analogous
#552A94 #8A2A94 #942A69
triadic
#8A2A94 #948A2A #2A948A
tetradic
#8A2A94 #94552A #34942A #2A6994
square
#8A2A94 #94552A #34942A #2A6994
split-complementary
#8A2A94 #69942A #2A9455
monochromatic
#310F35 #5E1C64 #8A2A94 #B638C4 #C965D3

Accessibility & contrast

On white

7.40
#8A2A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A2A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A94
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A94#FFFFFF#000000##FFFFFF
##8A2A941.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084E97
Deuteranopia (green-blind)
#3C5991
Tritanopia (blue-blind)
#8D3C5C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2a94;
/* rgb */ color: rgb(138, 42, 148);
/* oklch */ color: oklch(47.5% 0.181 323.8);
Tailwind
colors: {
  custom: {
    50: '#af6db4',
    500: '#8a2a94',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a94;
$custom-light: #af6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a94",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 294.34,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47493,
    "c": 0.18061,
    "h": 323.8
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#8A2A94
secondary
#69B960
accent
#DF4957
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2A94

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

Preview Lab → · Contrast checker → · Palette generator →

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