#8A1F86#8A1F86

#8A1F86 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.181 H 329.7°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8A1F86
RGBrgb(138, 31, 134)
HSLhsl(302, 63%, 33%)
HSVhsv(302, 78%, 54%)
CMYKcmyk(0%, 77.5%, 2.9%, 45.9%)
CIE-LABlab(34.20, 55.45, -33.09)
CIE-LCHlch(34.20, 64.57, 329.17°)
OKLaboklab(45.68% 0.1567 -0.0915)
OKLCHoklch(45.68% 0.181 329.7)
XYZxyz(15.2742, 8.1057, 23.3097)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F86 #1F8A23
analogous
#581F8A #8A1F86 #8A1F50
triadic
#8A1F86 #868A1F #1F868A
tetradic
#8A1F86 #8A581F #1F8A23 #1F508A
square
#8A1F86 #8A581F #1F8A23 #1F508A
split-complementary
#8A1F86 #508A1F #1F8A58
monochromatic
#260925 #581455 #8A1F86 #BC2AB7 #D74CD2

Accessibility & contrast

On white

8.01
#8A1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F86
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F86#FFFFFF#000000##FFFFFF
##8A1F861.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4789
Deuteranopia (green-blind)
#405583
Tritanopia (blue-blind)
#8F2F51
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f86;
/* rgb */ color: rgb(138, 31, 134);
/* oklch */ color: oklch(45.7% 0.181 329.7);
Tailwind
colors: {
  custom: {
    50: '#b068aa',
    500: '#8a1f86',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f86;
$custom-light: #b068aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f86",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 302.243,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45681,
    "c": 0.18143,
    "h": 329.7
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#8A1F86
secondary
#4BBA4F
accent
#E64841
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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