#8A2FA4#8A2FA4

#8A2FA4 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.0% C 0.189 H 317.7°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2FA4
RGBrgb(138, 47, 164)
HSLhsl(287, 55%, 41%)
HSVhsv(287, 71%, 64%)
CMYKcmyk(15.9%, 71.3%, 0%, 35.7%)
CIE-LABlab(38.05, 55.19, -45.24)
CIE-LCHlch(38.05, 71.37, 320.66°)
OKLaboklab(49.02% 0.1397 -0.127)
OKLCHoklch(49.02% 0.189 317.7)
XYZxyz(18.1976, 10.1174, 36.1091)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA4 #49A42F
analogous
#502FA4 #8A2FA4 #A42F84
triadic
#8A2FA4 #A48A2F #2FA48A
tetradic
#8A2FA4 #A4502F #49A42F #2F84A4
square
#8A2FA4 #A4502F #49A42F #2F84A4
split-complementary
#8A2FA4 #84A42F #2FA450
monochromatic
#3A1445 #622174 #8A2FA4 #AD46CA #C276D8

Accessibility & contrast

On white

6.95
#8A2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A2FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FA4
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA4#FFFFFF#000000##FFFFFF
##8A2FA41.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#335CA1
Tritanopia (blue-blind)
#894666
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2fa4;
/* rgb */ color: rgb(138, 47, 164);
/* oklch */ color: oklch(49.0% 0.189 317.7);
Tailwind
colors: {
  custom: {
    50: '#b070c0',
    500: '#8a2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa4;
$custom-light: #b070c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa4",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 286.667,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4902,
    "c": 0.18882,
    "h": 317.7
  },
  "luminance": 0.10117
}

Semantic roles & 50–950 ramp

primary
#8A2FA4
secondary
#81C06F
accent
#DF496A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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