#8A2FA7#8A2FA7

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

Color values

HEX#8A2FA7
RGBrgb(138, 47, 167)
HSLhsl(286, 56%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(17.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(38.25, 55.80, -46.73)
CIE-LCHlch(38.25, 72.78, 320.05°)
OKLaboklab(49.22% 0.1394 -0.1314)
OKLCHoklch(49.22% 0.192 316.7)
XYZxyz(18.4717, 10.2271, 37.5527)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA7 #4CA72F
analogous
#4E2FA7 #8A2FA7 #A72F88
triadic
#8A2FA7 #A78A2F #2FA78A
tetradic
#8A2FA7 #A74E2F #4CA72F #2F88A7
square
#8A2FA7 #A74E2F #4CA72F #2F88A7
split-complementary
#8A2FA7 #88A72F #2FA74E
monochromatic
#3B1447 #632277 #8A2FA7 #AC48CB #C178D9

Accessibility & contrast

On white

6.90
#8A2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FA7
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA7#FFFFFF#000000##FFFFFF
##8A2FA71.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#305DA4
Tritanopia (blue-blind)
#884768
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2fa7;
/* rgb */ color: rgb(138, 47, 167);
/* oklch */ color: oklch(49.2% 0.192 316.7);
Tailwind
colors: {
  custom: {
    50: '#b070c2',
    500: '#8a2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa7;
$custom-light: #b070c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa7",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 285.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49221,
    "c": 0.19158,
    "h": 316.7
  },
  "luminance": 0.10226
}

Semantic roles & 50–950 ramp

primary
#8A2FA7
secondary
#84C171
accent
#DF486D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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