#8A2FA8#8A2FA8

#8A2FA8 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.193 H 316.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8A2FA8
RGBrgb(138, 47, 168)
HSLhsl(285, 56%, 42%)
HSVhsv(285, 72%, 66%)
CMYKcmyk(17.9%, 72%, 0%, 34.1%)
CIE-LABlab(38.31, 56.00, -47.22)
CIE-LCHlch(38.31, 73.25, 319.86°)
OKLaboklab(49.29% 0.1393 -0.1328)
OKLCHoklch(49.29% 0.193 316.4)
XYZxyz(18.5645, 10.2642, 38.0415)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FA8 #4DA82F
analogous
#4E2FA8 #8A2FA8 #A82F8A
triadic
#8A2FA8 #A88A2F #2FA88A
tetradic
#8A2FA8 #A84E2F #4DA82F #2F8AA8
square
#8A2FA8 #A84E2F #4DA82F #2F8AA8
split-complementary
#8A2FA8 #8AA82F #2FA84E
monochromatic
#3B1448 #632278 #8A2FA8 #AB48CC #C178D9

Accessibility & contrast

On white

6.88
#8A2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2FA8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FA8#FFFFFF#000000##FFFFFF
##8A2FA81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#2F5DA5
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2fa8;
/* rgb */ color: rgb(138, 47, 168);
/* oklch */ color: oklch(49.3% 0.193 316.4);
Tailwind
colors: {
  custom: {
    50: '#b070c2',
    500: '#8a2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fa8;
$custom-light: #b070c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fa8",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 285.124,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49289,
    "c": 0.19252,
    "h": 316.4
  },
  "luminance": 0.10263
}

Semantic roles & 50–950 ramp

primary
#8A2FA8
secondary
#85C171
accent
#E0486E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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