#8A2FAC#8A2FAC

#8A2FAC is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.6% C 0.196 H 315.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A2FAC
RGBrgb(138, 47, 172)
HSLhsl(284, 57%, 43%)
HSVhsv(284, 73%, 67%)
CMYKcmyk(19.8%, 72.7%, 0%, 32.5%)
CIE-LABlab(38.58, 56.81, -49.18)
CIE-LCHlch(38.58, 75.14, 319.12°)
OKLaboklab(49.56% 0.1389 -0.1386)
OKLCHoklch(49.56% 0.196 315.1)
XYZxyz(18.9429, 10.4155, 40.0343)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FAC #51AC2F
analogous
#4B2FAC #8A2FAC #AC2F8F
triadic
#8A2FAC #AC8A2F #2FAC8A
tetradic
#8A2FAC #AC4B2F #51AC2F #2F8FAC
square
#8A2FAC #AC4B2F #51AC2F #2F8FAC
split-complementary
#8A2FAC #8FAC2F #2FAC4B
monochromatic
#3D154C #63227C #8A2FAC #AA4BCE #C17BDB

Accessibility & contrast

On white

6.81
#8A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FAC
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FAC#FFFFFF#000000##FFFFFF
##8A2FAC1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#2B5DA9
Tritanopia (blue-blind)
#87496B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2fac;
/* rgb */ color: rgb(138, 47, 172);
/* oklch */ color: oklch(49.6% 0.196 315.1);
Tailwind
colors: {
  custom: {
    50: '#b070c5',
    500: '#8a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fac;
$custom-light: #b070c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fac",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 283.68,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49562,
    "c": 0.19622,
    "h": 315.1
  },
  "luminance": 0.10415
}

Semantic roles & 50–950 ramp

primary
#8A2FAC
secondary
#89C374
accent
#E04771
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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