#8A1FAD#8A1FAD

#8A1FAD is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.3% C 0.213 H 315.7°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#8A1FAD
RGBrgb(138, 31, 173)
HSLhsl(285, 70%, 40%)
HSVhsv(285, 82%, 68%)
CMYKcmyk(20.2%, 82.1%, 0%, 32.2%)
CIE-LABlab(36.75, 62.48, -52.74)
CIE-LCHlch(36.75, 81.76, 319.84°)
OKLaboklab(48.29% 0.1526 -0.1489)
OKLCHoklch(48.29% 0.213 315.7)
XYZxyz(18.5128, 9.4011, 40.3665)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1FAD #42AD1F
analogous
#431FAD #8A1FAD #AD1F89
triadic
#8A1FAD #AD8A1F #1FAD8A
tetradic
#8A1FAD #AD431F #42AD1F #1F89AD
square
#8A1FAD #AD431F #42AD1F #1F89AD
split-complementary
#8A1FAD #89AD1F #1FAD43
monochromatic
#370C45 #611679 #8A1FAD #B02FDA #C463E3

Accessibility & contrast

On white

7.29
#8A1FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A1FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1FAD
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1FAD#FFFFFF#000000##FFFFFF
##8A1FAD1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#1959AA
Tritanopia (blue-blind)
#874268
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a1fad;
/* rgb */ color: rgb(138, 31, 173);
/* oklch */ color: oklch(48.3% 0.213 315.7);
Tailwind
colors: {
  custom: {
    50: '#b16ac6',
    500: '#8a1fad',
    950: '#000000',
  },
}
SCSS
$custom: #8a1fad;
$custom-light: #b16ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1fad",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 173
  },
  "hsl": {
    "h": 285.211,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.48291,
    "c": 0.21318,
    "h": 315.7
  },
  "luminance": 0.094
}

Semantic roles & 50–950 ramp

primary
#8A1FAD
secondary
#79C860
accent
#EC3B67
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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