#8A2FA0#8A2FA0

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

Color values

HEX#8A2FA0
RGBrgb(138, 47, 160)
HSLhsl(288, 55%, 41%)
HSVhsv(288, 71%, 63%)
CMYKcmyk(13.8%, 70.6%, 0%, 37.3%)
CIE-LABlab(37.80, 54.40, -43.25)
CIE-LCHlch(37.80, 69.50, 321.52°)
OKLaboklab(48.76% 0.14 -0.1212)
OKLCHoklch(48.76% 0.185 319.1)
XYZxyz(17.8421, 9.9752, 34.2365)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA0 #45A02F
analogous
#522FA0 #8A2FA0 #A02F7D
triadic
#8A2FA0 #A08A2F #2FA08A
tetradic
#8A2FA0 #A0522F #45A02F #2F7DA0
square
#8A2FA0 #A0522F #45A02F #2F7DA0
split-complementary
#8A2FA0 #7DA02F #2FA052
monochromatic
#381341 #612171 #8A2FA0 #AE44C8 #C373D6

Accessibility & contrast

On white

7.01
#8A2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2FA0
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA0#FFFFFF#000000##FFFFFF
##8A2FA01.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A3
Deuteranopia (green-blind)
#375C9D
Tritanopia (blue-blind)
#8A4464
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2fa0;
/* rgb */ color: rgb(138, 47, 160);
/* oklch */ color: oklch(48.8% 0.185 319.1);
Tailwind
colors: {
  custom: {
    50: '#b070bd',
    500: '#8a2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa0;
$custom-light: #b070bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa0",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 288.319,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48757,
    "c": 0.18514,
    "h": 319.1
  },
  "luminance": 0.09974
}

Semantic roles & 50–950 ramp

primary
#8A2FA0
secondary
#7DBE6D
accent
#DE4A67
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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