#8A2D9A#8A2D9A

#8A2D9A is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.182 H 321.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8A2D9A
RGBrgb(138, 45, 154)
HSLhsl(291, 55%, 39%)
HSVhsv(291, 71%, 60%)
CMYKcmyk(10.4%, 70.8%, 0%, 39.6%)
CIE-LABlab(37.14, 54.04, -40.67)
CIE-LCHlch(37.14, 67.64, 323.04°)
OKLaboklab(48.17% 0.1424 -0.1136)
OKLCHoklch(48.17% 0.182 321.4)
XYZxyz(17.2517, 9.6141, 31.5126)
Luminance0.0961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D9A #3D9A2D
analogous
#542D9A #8A2D9A #9A2D74
triadic
#8A2D9A #9A8A2D #2D9A8A
tetradic
#8A2D9A #9A542D #3D9A2D #2D749A
square
#8A2D9A #9A542D #3D9A2D #2D749A
split-complementary
#8A2D9A #749A2D #2D9A54
monochromatic
#35113B #601F6B #8A2D9A #B23EC7 #C56DD4

Accessibility & contrast

On white

7.19
#8A2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2D9A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D9A#FFFFFF#000000##FFFFFF
##8A2D9A1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519D
Deuteranopia (green-blind)
#3A5B97
Tritanopia (blue-blind)
#8B4160
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2d9a;
/* rgb */ color: rgb(138, 45, 154);
/* oklch */ color: oklch(48.2% 0.182 321.4);
Tailwind
colors: {
  custom: {
    50: '#af6fb8',
    500: '#8a2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d9a;
$custom-light: #af6fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d9a",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 291.193,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48167,
    "c": 0.1822,
    "h": 321.4
  },
  "luminance": 0.09613
}

Semantic roles & 50–950 ramp

primary
#8A2D9A
secondary
#74BB67
accent
#DE4A5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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