#8A2F9A#8A2F9A

#8A2F9A is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.4% C 0.180 H 321.3°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#8A2F9A
RGBrgb(138, 47, 154)
HSLhsl(291, 53%, 39%)
HSVhsv(291, 69%, 60%)
CMYKcmyk(10.4%, 69.5%, 0%, 39.6%)
CIE-LABlab(37.43, 53.23, -40.21)
CIE-LCHlch(37.43, 66.72, 322.93°)
OKLaboklab(48.37% 0.1402 -0.1123)
OKLCHoklch(48.37% 0.18 321.3)
XYZxyz(17.3298, 9.7703, 31.5386)
Luminance0.0977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F9A #3F9A2F
analogous
#552F9A #8A2F9A #9A2F75
triadic
#8A2F9A #9A8A2F #2F9A8A
tetradic
#8A2F9A #9A552F #3F9A2F #2F759A
square
#8A2F9A #9A552F #3F9A2F #2F759A
split-complementary
#8A2F9A #759A2F #2F9A55
monochromatic
#36123C #60216B #8A2F9A #B141C5 #C570D3

Accessibility & contrast

On white

7.11
#8A2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A2F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F9A
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F9A#FFFFFF#000000##FFFFFF
##8A2F9A1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08529D
Deuteranopia (green-blind)
#3B5B97
Tritanopia (blue-blind)
#8B4261
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f9a;
/* rgb */ color: rgb(138, 47, 154);
/* oklch */ color: oklch(48.4% 0.180 321.3);
Tailwind
colors: {
  custom: {
    50: '#af70b8',
    500: '#8a2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f9a;
$custom-light: #af70b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f9a",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 291.028,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48372,
    "c": 0.17968,
    "h": 321.3
  },
  "luminance": 0.09769
}

Semantic roles & 50–950 ramp

primary
#8A2F9A
secondary
#76BB6A
accent
#DD4B61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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