#8A2E91#8A2E91

#8A2E91 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.173 H 324.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A2E91
RGBrgb(138, 46, 145)
HSLhsl(296, 52%, 37%)
HSVhsv(296, 68%, 57%)
CMYKcmyk(4.8%, 68.3%, 0%, 43.1%)
CIE-LABlab(36.75, 51.95, -35.82)
CIE-LCHlch(36.75, 63.10, 325.41°)
OKLaboklab(47.71% 0.1414 -0.0995)
OKLCHoklch(47.71% 0.173 324.9)
XYZxyz(16.5687, 9.4026, 27.7248)
Luminance0.0940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E91 #35912E
analogous
#592E91 #8A2E91 #912E66
triadic
#8A2E91 #918A2E #2E918A
tetradic
#8A2E91 #91592E #35912E #2E6691
square
#8A2E91 #91592E #35912E #2E6691
split-complementary
#8A2E91 #66912E #2E9159
monochromatic
#321134 #5E1F63 #8A2E91 #B63DBF #C86AD0

Accessibility & contrast

On white

7.29
#8A2E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A2E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E91
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E91#FFFFFF#000000##FFFFFF
##8A2E911.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194F94
Deuteranopia (green-blind)
#415A8E
Tritanopia (blue-blind)
#8D3D5C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2e91;
/* rgb */ color: rgb(138, 46, 145);
/* oklch */ color: oklch(47.7% 0.173 324.9);
Tailwind
colors: {
  custom: {
    50: '#af6fb2',
    500: '#8a2e91',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e91;
$custom-light: #af6fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e91",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 295.758,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47712,
    "c": 0.17294,
    "h": 324.9
  },
  "luminance": 0.09402
}

Semantic roles & 50–950 ramp

primary
#8A2E91
secondary
#6AB764
accent
#DB4D57
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E91

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

Preview Lab → · Contrast checker → · Palette generator →

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