#8A2E97#8A2E97

#8A2E97 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.178 H 322.5°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8A2E97
RGBrgb(138, 46, 151)
HSLhsl(293, 53%, 39%)
HSVhsv(293, 70%, 59%)
CMYKcmyk(8.6%, 69.5%, 0%, 40.8%)
CIE-LABlab(37.10, 53.07, -38.91)
CIE-LCHlch(37.10, 65.81, 323.75°)
OKLaboklab(48.08% 0.1414 -0.1085)
OKLCHoklch(48.08% 0.178 322.5)
XYZxyz(17.0436, 9.5926, 30.2260)
Luminance0.0959 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E97 #3B972E
analogous
#552E97 #8A2E97 #972E6F
triadic
#8A2E97 #978A2E #2E978A
tetradic
#8A2E97 #97552E #3B972E #2E6F97
square
#8A2E97 #97552E #3B972E #2E6F97
split-complementary
#8A2E97 #6F972E #2E9755
monochromatic
#341139 #5F2068 #8A2E97 #B43EC4 #C66DD2

Accessibility & contrast

On white

7.20
#8A2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E97
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E97#FFFFFF#000000##FFFFFF
##8A2E971.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D519A
Deuteranopia (green-blind)
#3D5B94
Tritanopia (blue-blind)
#8C405F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2e97;
/* rgb */ color: rgb(138, 46, 151);
/* oklch */ color: oklch(48.1% 0.178 322.5);
Tailwind
colors: {
  custom: {
    50: '#af6fb6',
    500: '#8a2e97',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e97;
$custom-light: #af6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e97",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 292.571,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4808,
    "c": 0.17826,
    "h": 322.5
  },
  "luminance": 0.09592
}

Semantic roles & 50–950 ramp

primary
#8A2E97
secondary
#71BA67
accent
#DD4B5D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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