#8A2F8A#8A2F8A

#8A2F8A is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.4% C 0.166 H 327.8°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8A2F8A
RGBrgb(138, 47, 138)
HSLhsl(300, 49%, 36%)
HSVhsv(300, 66%, 54%)
CMYKcmyk(0%, 65.9%, 0%, 45.9%)
CIE-LABlab(36.50, 50.26, -31.92)
CIE-LCHlch(36.50, 59.53, 327.58°)
OKLaboklab(47.41% 0.1401 -0.0882)
OKLCHoklch(47.41% 0.166 327.8)
XYZxyz(16.0850, 9.2724, 24.9824)
Luminance0.0927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F8A #2F8A2F
analogous
#5D2F8A #8A2F8A #8A2F5D
triadic
#8A2F8A #8A8A2F #2F8A8A
tetradic
#8A2F8A #8A5D2F #2F8A2F #2F5D8A
square
#8A2F8A #8A5D2F #2F8A2F #2F5D8A
split-complementary
#8A2F8A #5D8A2F #2F8A5D
monochromatic
#2F102F #5C1F5C #8A2F8A #B83FB8 #CC68CC

Accessibility & contrast

On white

7.36
#8A2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F8A
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F8A#FFFFFF#000000##FFFFFF
##8A2F8A1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8D
Deuteranopia (green-blind)
#455A88
Tritanopia (blue-blind)
#8E3B58
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2f8a;
/* rgb */ color: rgb(138, 47, 138);
/* oklch */ color: oklch(47.4% 0.166 327.8);
Tailwind
colors: {
  custom: {
    50: '#af6fac',
    500: '#8a2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f8a;
$custom-light: #af6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f8a",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47408,
    "c": 0.16551,
    "h": 327.8
  },
  "luminance": 0.09271
}

Semantic roles & 50–950 ramp

primary
#8A2F8A
secondary
#62B362
accent
#D94F4F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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