#8A1FB4#8A1FB4

#8A1FB4 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.8% C 0.219 H 313.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8A1FB4
RGBrgb(138, 31, 180)
HSLhsl(283, 71%, 41%)
HSVhsv(283, 83%, 71%)
CMYKcmyk(23.3%, 82.8%, 0%, 29.4%)
CIE-LABlab(37.26, 63.85, -56.07)
CIE-LCHlch(37.26, 84.97, 318.71°)
OKLaboklab(48.81% 0.1511 -0.1587)
OKLCHoklch(48.81% 0.219 313.6)
XYZxyz(19.2080, 9.6792, 44.0276)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1FB4 #49B41F
analogous
#401FB4 #8A1FB4 #B41F94
triadic
#8A1FB4 #B48A1F #1FB48A
tetradic
#8A1FB4 #B4401F #49B41F #1F94B4
square
#8A1FB4 #B4401F #49B41F #1F94B4
split-complementary
#8A1FB4 #94B41F #1FB440
monochromatic
#3A0D4C #621680 #8A1FB4 #AD34DC #C268E5

Accessibility & contrast

On white

7.15
#8A1FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A1FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1FB4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1FB4#FFFFFF#000000##FFFFFF
##8A1FB41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#045AB1
Tritanopia (blue-blind)
#85456C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a1fb4;
/* rgb */ color: rgb(138, 31, 180);
/* oklch */ color: oklch(48.8% 0.219 313.6);
Tailwind
colors: {
  custom: {
    50: '#b16acb',
    500: '#8a1fb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a1fb4;
$custom-light: #b16acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1fb4",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 283.087,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48813,
    "c": 0.21909,
    "h": 313.6
  },
  "luminance": 0.09679
}

Semantic roles & 50–950 ramp

primary
#8A1FB4
secondary
#81CB64
accent
#ED3A6D
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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