#8A1FA1#8A1FA1

#8A1FA1 is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.4% C 0.203 H 319.6°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A1FA1
RGBrgb(138, 31, 161)
HSLhsl(289, 68%, 38%)
HSVhsv(289, 81%, 63%)
CMYKcmyk(14.3%, 80.7%, 0%, 36.9%)
CIE-LABlab(35.90, 60.21, -46.89)
CIE-LCHlch(35.90, 76.31, 322.09°)
OKLaboklab(47.43% 0.1546 -0.1318)
OKLCHoklch(47.43% 0.203 319.6)
XYZxyz(17.4034, 8.9574, 34.5235)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1FA1 #36A11F
analogous
#491FA1 #8A1FA1 #A11F77
triadic
#8A1FA1 #A18A1F #1FA18A
tetradic
#8A1FA1 #A1491F #36A11F #1F77A1
square
#8A1FA1 #A1491F #36A11F #1F77A1
split-complementary
#8A1FA1 #77A11F #1FA149
monochromatic
#320B3A #5E156E #8A1FA1 #B629D4 #C85BDF

Accessibility & contrast

On white

7.52
#8A1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1FA1
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1FA1#FFFFFF#000000##FFFFFF
##8A1FA11.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#2B589E
Tritanopia (blue-blind)
#8A3C61
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1fa1;
/* rgb */ color: rgb(138, 31, 161);
/* oklch */ color: oklch(47.4% 0.203 319.6);
Tailwind
colors: {
  custom: {
    50: '#b069bd',
    500: '#8a1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8a1fa1;
$custom-light: #b069bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1fa1",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 289.385,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47431,
    "c": 0.20316,
    "h": 319.6
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#8A1FA1
secondary
#6BC458
accent
#EB3D5C
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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