#8A2E96#8A2E96

#8A2E96 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.0% C 0.177 H 322.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8A2E96
RGBrgb(138, 46, 150)
HSLhsl(293, 53%, 38%)
HSVhsv(293, 69%, 59%)
CMYKcmyk(8%, 69.3%, 0%, 41.2%)
CIE-LABlab(37.04, 52.88, -38.40)
CIE-LCHlch(37.04, 65.35, 324.01°)
OKLaboklab(48.02% 0.1414 -0.107)
OKLCHoklch(48.02% 0.177 322.9)
XYZxyz(16.9627, 9.5602, 29.8001)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E96 #3A962E
analogous
#562E96 #8A2E96 #962E6E
triadic
#8A2E96 #968A2E #2E968A
tetradic
#8A2E96 #96562E #3A962E #2E6E96
square
#8A2E96 #96562E #3A962E #2E6E96
split-complementary
#8A2E96 #6E962E #2E9656
monochromatic
#341138 #5F2067 #8A2E96 #B43EC4 #C66CD2

Accessibility & contrast

On white

7.21
#8A2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E96
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E96#FFFFFF#000000##FFFFFF
##8A2E961.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105099
Deuteranopia (green-blind)
#3D5B93
Tritanopia (blue-blind)
#8C405E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2e96;
/* rgb */ color: rgb(138, 46, 150);
/* oklch */ color: oklch(48.0% 0.177 322.9);
Tailwind
colors: {
  custom: {
    50: '#af6fb5',
    500: '#8a2e96',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e96;
$custom-light: #af6fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e96",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 293.077,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48018,
    "c": 0.17737,
    "h": 322.9
  },
  "luminance": 0.09559
}

Semantic roles & 50–950 ramp

primary
#8A2E96
secondary
#70B967
accent
#DC4B5C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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