#8F2AAA#8F2AAA

#8F2AAA is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.7% C 0.202 H 318.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#8F2AAA
RGBrgb(143, 42, 170)
HSLhsl(287, 60%, 42%)
HSVhsv(287, 75%, 67%)
CMYKcmyk(15.9%, 75.3%, 0%, 33.3%)
CIE-LABlab(38.55, 59.32, -48.00)
CIE-LCHlch(38.55, 76.30, 321.02°)
OKLaboklab(49.65% 0.1502 -0.1349)
OKLCHoklch(49.65% 0.202 318.1)
XYZxyz(19.4103, 10.3987, 39.0071)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2AAA #45AA2A
analogous
#4F2AAA #8F2AAA #AA2A85
triadic
#8F2AAA #AA8F2A #2AAA8F
tetradic
#8F2AAA #AA4F2A #45AA2A #2A85AA
square
#8F2AAA #AA4F2A #45AA2A #2A85AA
split-complementary
#8F2AAA #85AA2A #2AAA4F
monochromatic
#3C1248 #661E79 #8F2AAA #B241D0 #C672DC

Accessibility & contrast

On white

6.82
#8F2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8F2AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2AAA
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2AAA#FFFFFF#000000##FFFFFF
##8F2AAA1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#305EA7
Tritanopia (blue-blind)
#8E4568
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8f2aaa;
/* rgb */ color: rgb(143, 42, 170);
/* oklch */ color: oklch(49.7% 0.202 318.1);
Tailwind
colors: {
  custom: {
    50: '#b46ec4',
    500: '#8f2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #8f2aaa;
$custom-light: #b46ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2aaa",
  "rgb": {
    "r": 143,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 287.344,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49653,
    "c": 0.20191,
    "h": 318.1
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#8F2AAA
secondary
#7FC36C
accent
#E44466
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #8F2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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