#8A2FAD#8A2FAD

#8A2FAD is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.197 H 314.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A2FAD
RGBrgb(138, 47, 173)
HSLhsl(283, 57%, 43%)
HSVhsv(283, 73%, 68%)
CMYKcmyk(20.2%, 72.8%, 0%, 32.2%)
CIE-LABlab(38.65, 57.01, -49.67)
CIE-LCHlch(38.65, 75.61, 318.94°)
OKLaboklab(49.63% 0.1388 -0.14)
OKLCHoklch(49.63% 0.197 314.8)
XYZxyz(19.0393, 10.4541, 40.5420)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2FAD #52AD2F
analogous
#4B2FAD #8A2FAD #AD2F91
triadic
#8A2FAD #AD8A2F #2FAD8A
tetradic
#8A2FAD #AD4B2F #52AD2F #2F91AD
square
#8A2FAD #AD4B2F #52AD2F #2F91AD
split-complementary
#8A2FAD #91AD2F #2FAD4B
monochromatic
#3D154D #64227D #8A2FAD #AA4BCE #C17BDB

Accessibility & contrast

On white

6.79
#8A2FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A2FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2FAD
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2FAD#FFFFFF#000000##FFFFFF
##8A2FAD1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B1
Deuteranopia (green-blind)
#295DAA
Tritanopia (blue-blind)
#874A6B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2fad;
/* rgb */ color: rgb(138, 47, 173);
/* oklch */ color: oklch(49.6% 0.197 314.8);
Tailwind
colors: {
  custom: {
    50: '#b070c6',
    500: '#8a2fad',
    950: '#000000',
  },
}
SCSS
$custom: #8a2fad;
$custom-light: #b070c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2fad",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 283.333,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49632,
    "c": 0.19715,
    "h": 314.8
  },
  "luminance": 0.10453
}

Semantic roles & 50–950 ramp

primary
#8A2FAD
secondary
#8AC474
accent
#E14772
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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