#8A2FAA#8A2FAA

#8A2FAA is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.194 H 315.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8A2FAA
RGBrgb(138, 47, 170)
HSLhsl(284, 57%, 43%)
HSVhsv(284, 72%, 67%)
CMYKcmyk(18.8%, 72.4%, 0%, 33.3%)
CIE-LABlab(38.44, 56.40, -48.20)
CIE-LCHlch(38.44, 74.19, 319.48°)
OKLaboklab(49.43% 0.1391 -0.1357)
OKLCHoklch(49.43% 0.194 315.7)
XYZxyz(18.7523, 10.3393, 39.0303)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FAA #4FAA2F
analogous
#4C2FAA #8A2FAA #AA2F8D
triadic
#8A2FAA #AA8A2F #2FAA8A
tetradic
#8A2FAA #AA4C2F #4FAA2F #2F8DAA
square
#8A2FAA #AA4C2F #4FAA2F #2F8DAA
split-complementary
#8A2FAA #8DAA2F #2FAA4C
monochromatic
#3C144A #63227A #8A2FAA #AB49CD #C179DA

Accessibility & contrast

On white

6.85
#8A2FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A2FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FAA
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FAA#FFFFFF#000000##FFFFFF
##8A2FAA1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AD
Deuteranopia (green-blind)
#2D5DA7
Tritanopia (blue-blind)
#88496A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2faa;
/* rgb */ color: rgb(138, 47, 170);
/* oklch */ color: oklch(49.4% 0.194 315.7);
Tailwind
colors: {
  custom: {
    50: '#b070c4',
    500: '#8a2faa',
    950: '#000000',
  },
}
SCSS
$custom: #8a2faa;
$custom-light: #b070c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2faa",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 284.39,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49425,
    "c": 0.19436,
    "h": 315.7
  },
  "luminance": 0.10339
}

Semantic roles & 50–950 ramp

primary
#8A2FAA
secondary
#87C272
accent
#E0486F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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