#8A2F99#8A2F99

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

Color values

HEX#8A2F99
RGBrgb(138, 47, 153)
HSLhsl(292, 53%, 39%)
HSVhsv(292, 69%, 60%)
CMYKcmyk(9.8%, 69.3%, 0%, 40%)
CIE-LABlab(37.37, 53.04, -39.70)
CIE-LCHlch(37.37, 66.26, 323.18°)
OKLaboklab(48.31% 0.1403 -0.1108)
OKLCHoklch(48.31% 0.179 321.7)
XYZxyz(17.2469, 9.7371, 31.1018)
Luminance0.0974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F99 #3E992F
analogous
#552F99 #8A2F99 #992F73
triadic
#8A2F99 #998A2F #2F998A
tetradic
#8A2F99 #99552F #3E992F #2F7399
square
#8A2F99 #99552F #3E992F #2F7399
split-complementary
#8A2F99 #73992F #2F9955
monochromatic
#36123B #60216A #8A2F99 #B241C5 #C56FD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2F99#FFFFFF#000000##FFFFFF
##8A2F991.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B519C
Deuteranopia (green-blind)
#3C5B96
Tritanopia (blue-blind)
#8B4160
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f99;
/* rgb */ color: rgb(138, 47, 153);
/* oklch */ color: oklch(48.3% 0.179 321.7);
Tailwind
colors: {
  custom: {
    50: '#af6fb7',
    500: '#8a2f99',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f99;
$custom-light: #af6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f99",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 291.509,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48309,
    "c": 0.17877,
    "h": 321.7
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#8A2F99
secondary
#75BA69
accent
#DC4B60
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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