#8A2FA3#8A2FA3

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

Color values

HEX#8A2FA3
RGBrgb(138, 47, 163)
HSLhsl(287, 55%, 41%)
HSVhsv(287, 71%, 64%)
CMYKcmyk(15.3%, 71.2%, 0%, 36.1%)
CIE-LABlab(37.99, 55.00, -44.74)
CIE-LCHlch(37.99, 70.90, 320.87°)
OKLaboklab(48.95% 0.1398 -0.1256)
OKLCHoklch(48.95% 0.188 318.1)
XYZxyz(18.1077, 10.0814, 35.6353)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA3 #48A32F
analogous
#502FA3 #8A2FA3 #A32F82
triadic
#8A2FA3 #A38A2F #2FA38A
tetradic
#8A2FA3 #A3502F #48A32F #2F82A3
square
#8A2FA3 #A3502F #48A32F #2F82A3
split-complementary
#8A2FA3 #82A32F #2FA350
monochromatic
#3A1444 #622173 #8A2FA3 #AD46CA #C275D7

Accessibility & contrast

On white

6.96
#8A2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2FA3
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA3#FFFFFF#000000##FFFFFF
##8A2FA31.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#345CA0
Tritanopia (blue-blind)
#894666
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2fa3;
/* rgb */ color: rgb(138, 47, 163);
/* oklch */ color: oklch(49.0% 0.188 318.1);
Tailwind
colors: {
  custom: {
    50: '#b070bf',
    500: '#8a2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa3;
$custom-light: #b070bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa3",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 287.069,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48954,
    "c": 0.1879,
    "h": 318.1
  },
  "luminance": 0.10081
}

Semantic roles & 50–950 ramp

primary
#8A2FA3
secondary
#80BF6F
accent
#DF4969
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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