#8F2A8A#8F2A8A

#8F2A8A is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.7% C 0.175 H 330.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8F2A8A
RGBrgb(143, 42, 138)
HSLhsl(303, 55%, 36%)
HSVhsv(303, 71%, 56%)
CMYKcmyk(0%, 70.6%, 3.5%, 43.9%)
CIE-LABlab(36.62, 53.50, -31.69)
CIE-LCHlch(36.62, 62.17, 329.36°)
OKLaboklab(47.65% 0.1514 -0.0874)
OKLCHoklch(47.65% 0.175 330)
XYZxyz(16.7430, 9.3318, 24.9592)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2A8A #2A8F2F
analogous
#622A8F #8F2A8A #8F2A58
triadic
#8F2A8A #8A8F2A #2A8A8F
tetradic
#8F2A8A #8F622A #2A8F2F #2A588F
square
#8F2A8A #8F622A #2A8F2F #2A588F
split-complementary
#8F2A8A #588F2A #2A8F62
monochromatic
#300E2F #601C5C #8F2A8A #BE38B8 #D162CC

Accessibility & contrast

On white

7.33
#8F2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8F2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2A8A
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2A8A#FFFFFF#000000##FFFFFF
##8F2A8A1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204D8D
Deuteranopia (green-blind)
#475B87
Tritanopia (blue-blind)
#943657
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8f2a8a;
/* rgb */ color: rgb(143, 42, 138);
/* oklch */ color: oklch(47.7% 0.175 330.0);
Tailwind
colors: {
  custom: {
    50: '#b36dac',
    500: '#8f2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #8f2a8a;
$custom-light: #b36dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2a8a",
  "rgb": {
    "r": 143,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 302.97,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47651,
    "c": 0.1748,
    "h": 330
  },
  "luminance": 0.09331
}

Semantic roles & 50–950 ramp

primary
#8F2A8A
secondary
#5EB762
accent
#DE514A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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