#8A2E99#8A2E99

#8A2E99 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.2% C 0.180 H 321.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#8A2E99
RGBrgb(138, 46, 153)
HSLhsl(292, 54%, 39%)
HSVhsv(292, 70%, 60%)
CMYKcmyk(9.8%, 69.9%, 0%, 40%)
CIE-LABlab(37.22, 53.45, -39.94)
CIE-LCHlch(37.22, 66.72, 323.23°)
OKLaboklab(48.21% 0.1414 -0.1115)
OKLCHoklch(48.21% 0.18 321.7)
XYZxyz(17.2074, 9.6581, 31.0886)
Luminance0.0966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E99 #3D992E
analogous
#552E99 #8A2E99 #992E73
triadic
#8A2E99 #998A2E #2E998A
tetradic
#8A2E99 #99552E #3D992E #2E7399
square
#8A2E99 #99552E #3D992E #2E7399
split-complementary
#8A2E99 #73992E #2E9955
monochromatic
#35123B #60206A #8A2E99 #B23FC5 #C56ED3

Accessibility & contrast

On white

7.16
#8A2E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A2E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E99
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E99#FFFFFF#000000##FFFFFF
##8A2E991.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07519C
Deuteranopia (green-blind)
#3B5B96
Tritanopia (blue-blind)
#8B4160
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2e99;
/* rgb */ color: rgb(138, 46, 153);
/* oklch */ color: oklch(48.2% 0.180 321.7);
Tailwind
colors: {
  custom: {
    50: '#af6fb7',
    500: '#8a2e99',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e99;
$custom-light: #af6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e99",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 291.589,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48205,
    "c": 0.18005,
    "h": 321.7
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

primary
#8A2E99
secondary
#74BB68
accent
#DD4B5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E99

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

Preview Lab → · Contrast checker → · Palette generator →

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