#8A2FA1#8A2FA1

#8A2FA1 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.186 H 318.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8A2FA1
RGBrgb(138, 47, 161)
HSLhsl(288, 55%, 41%)
HSVhsv(288, 71%, 63%)
CMYKcmyk(14.3%, 70.8%, 0%, 36.9%)
CIE-LABlab(37.86, 54.60, -43.75)
CIE-LCHlch(37.86, 69.96, 321.30°)
OKLaboklab(48.82% 0.1399 -0.1227)
OKLCHoklch(48.82% 0.186 318.8)
XYZxyz(17.9299, 10.0103, 34.6990)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA1 #46A12F
analogous
#512FA1 #8A2FA1 #A12F7F
triadic
#8A2FA1 #A18A2F #2FA18A
tetradic
#8A2FA1 #A1512F #46A12F #2F7FA1
square
#8A2FA1 #A1512F #46A12F #2F7FA1
split-complementary
#8A2FA1 #7FA12F #2FA151
monochromatic
#391342 #612172 #8A2FA1 #AE45C9 #C374D6

Accessibility & contrast

On white

7.00
#8A2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FA1
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA1#FFFFFF#000000##FFFFFF
##8A2FA11.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#365C9E
Tritanopia (blue-blind)
#8A4565
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2fa1;
/* rgb */ color: rgb(138, 47, 161);
/* oklch */ color: oklch(48.8% 0.186 318.8);
Tailwind
colors: {
  custom: {
    50: '#b070bd',
    500: '#8a2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa1;
$custom-light: #b070bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa1",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 287.895,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48822,
    "c": 0.18606,
    "h": 318.8
  },
  "luminance": 0.1001
}

Semantic roles & 50–950 ramp

primary
#8A2FA1
secondary
#7EBE6E
accent
#DE4A68
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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