#8A1FAB#8A1FAB

#8A1FAB is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.1% C 0.211 H 316.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A1FAB
RGBrgb(138, 31, 171)
HSLhsl(286, 69%, 40%)
HSVhsv(286, 82%, 67%)
CMYKcmyk(19.3%, 81.9%, 0%, 32.9%)
CIE-LABlab(36.60, 62.10, -51.77)
CIE-LCHlch(36.60, 80.85, 320.18°)
OKLaboklab(48.14% 0.1529 -0.1461)
OKLCHoklch(48.14% 0.212 316.3)
XYZxyz(18.3208, 9.3243, 39.3549)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1FAB #40AB1F
analogous
#441FAB #8A1FAB #AB1F86
triadic
#8A1FAB #AB8A1F #1FAB8A
tetradic
#8A1FAB #AB441F #40AB1F #1F86AB
square
#8A1FAB #AB441F #40AB1F #1F86AB
split-complementary
#8A1FAB #86AB1F #1FAB44
monochromatic
#360C43 #601677 #8A1FAB #B12ED9 #C462E3

Accessibility & contrast

On white

7.33
#8A1FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A1FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1FAB
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1FAB#FFFFFF#000000##FFFFFF
##8A1FAB1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#1D59A8
Tritanopia (blue-blind)
#884167
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a1fab;
/* rgb */ color: rgb(138, 31, 171);
/* oklch */ color: oklch(48.1% 0.211 316.3);
Tailwind
colors: {
  custom: {
    50: '#b169c5',
    500: '#8a1fab',
    950: '#000000',
  },
}
SCSS
$custom: #8a1fab;
$custom-light: #b169c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1fab",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 171
  },
  "hsl": {
    "h": 285.857,
    "s": 69.307,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48144,
    "c": 0.2115,
    "h": 316.3
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

primary
#8A1FAB
secondary
#77C75E
accent
#EC3C65
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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