#8A2E9B#8A2E9B

#8A2E9B is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.3% C 0.182 H 321.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8A2E9B
RGBrgb(138, 46, 155)
HSLhsl(291, 54%, 39%)
HSVhsv(291, 70%, 61%)
CMYKcmyk(11%, 70.3%, 0%, 39.2%)
CIE-LABlab(37.34, 53.83, -40.95)
CIE-LCHlch(37.34, 67.64, 322.74°)
OKLaboklab(48.33% 0.1413 -0.1145)
OKLCHoklch(48.33% 0.182 321)
XYZxyz(17.3739, 9.7247, 31.9659)
Luminance0.0972 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E9B #3F9B2E
analogous
#542E9B #8A2E9B #9B2E76
triadic
#8A2E9B #9B8A2E #2E9B8A
tetradic
#8A2E9B #9B542E #3F9B2E #2E769B
square
#8A2E9B #9B542E #3F9B2E #2E769B
split-complementary
#8A2E9B #769B2E #2E9B54
monochromatic
#36123D #60206C #8A2E9B #B140C6 #C56FD4

Accessibility & contrast

On white

7.13
#8A2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E9B
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E9B#FFFFFF#000000##FFFFFF
##8A2E9B1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01519E
Deuteranopia (green-blind)
#3A5B98
Tritanopia (blue-blind)
#8B4261
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2e9b;
/* rgb */ color: rgb(138, 46, 155);
/* oklch */ color: oklch(48.3% 0.182 321.0);
Tailwind
colors: {
  custom: {
    50: '#af6fb9',
    500: '#8a2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e9b;
$custom-light: #af6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e9b",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 290.642,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48332,
    "c": 0.18185,
    "h": 321
  },
  "luminance": 0.09724
}

Semantic roles & 50–950 ramp

primary
#8A2E9B
secondary
#76BC69
accent
#DE4A61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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