#8A1FB1#8A1FB1

#8A1FB1 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.6% C 0.217 H 314.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8A1FB1
RGBrgb(138, 31, 177)
HSLhsl(284, 70%, 41%)
HSVhsv(284, 82%, 69%)
CMYKcmyk(22%, 82.5%, 0%, 30.6%)
CIE-LABlab(37.04, 63.26, -54.65)
CIE-LCHlch(37.04, 83.59, 319.18°)
OKLaboklab(48.59% 0.1517 -0.1545)
OKLCHoklch(48.59% 0.217 314.5)
XYZxyz(18.9057, 9.5583, 42.4355)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1FB1 #46B11F
analogous
#411FB1 #8A1FB1 #B11F8F
triadic
#8A1FB1 #B18A1F #1FB18A
tetradic
#8A1FB1 #B1411F #46B11F #1F8FB1
square
#8A1FB1 #B1411F #46B11F #1F8FB1
split-complementary
#8A1FB1 #8FB11F #1FB141
monochromatic
#390D49 #61167D #8A1FB1 #AE32DB #C366E4

Accessibility & contrast

On white

7.21
#8A1FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A1FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1FB1
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1FB1#FFFFFF#000000##FFFFFF
##8A1FB11.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B5
Deuteranopia (green-blind)
#0F5AAE
Tritanopia (blue-blind)
#86446A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a1fb1;
/* rgb */ color: rgb(138, 31, 177);
/* oklch */ color: oklch(48.6% 0.217 314.5);
Tailwind
colors: {
  custom: {
    50: '#b16ac9',
    500: '#8a1fb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a1fb1;
$custom-light: #b16ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1fb1",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 177
  },
  "hsl": {
    "h": 283.973,
    "s": 70.192,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48587,
    "c": 0.21655,
    "h": 314.5
  },
  "luminance": 0.09558
}

Semantic roles & 50–950 ramp

primary
#8A1FB1
secondary
#7ECA62
accent
#ED3B6A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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