#8A2FA6#8A2FA6

#8A2FA6 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.191 H 317.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8A2FA6
RGBrgb(138, 47, 166)
HSLhsl(286, 56%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(16.9%, 71.7%, 0%, 34.9%)
CIE-LABlab(38.18, 55.60, -46.23)
CIE-LCHlch(38.18, 72.31, 320.25°)
OKLaboklab(49.15% 0.1395 -0.1299)
OKLCHoklch(49.15% 0.191 317)
XYZxyz(18.3797, 10.1902, 37.0678)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA6 #4BA62F
analogous
#4E2FA6 #8A2FA6 #A62F87
triadic
#8A2FA6 #A68A2F #2FA68A
tetradic
#8A2FA6 #A64E2F #4BA62F #2F87A6
square
#8A2FA6 #A64E2F #4BA62F #2F87A6
split-complementary
#8A2FA6 #87A62F #2FA64E
monochromatic
#3B1447 #622176 #8A2FA6 #AC47CB #C277D8

Accessibility & contrast

On white

6.91
#8A2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FA6
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA6#FFFFFF#000000##FFFFFF
##8A2FA61.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#315DA3
Tritanopia (blue-blind)
#894767
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2fa6;
/* rgb */ color: rgb(138, 47, 166);
/* oklch */ color: oklch(49.2% 0.191 317.0);
Tailwind
colors: {
  custom: {
    50: '#b070c1',
    500: '#8a2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa6;
$custom-light: #b070c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa6",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 285.882,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49154,
    "c": 0.19066,
    "h": 317
  },
  "luminance": 0.10189
}

Semantic roles & 50–950 ramp

primary
#8A2FA6
secondary
#83C170
accent
#DF496C
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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