#8A1F87#8A1F87

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

Color values

HEX#8A1F87
RGBrgb(138, 31, 135)
HSLhsl(302, 63%, 33%)
HSVhsv(302, 78%, 54%)
CMYKcmyk(0%, 77.5%, 2.2%, 45.9%)
CIE-LABlab(34.26, 55.62, -33.62)
CIE-LCHlch(34.26, 64.99, 328.85°)
OKLaboklab(45.74% 0.1567 -0.093)
OKLCHoklch(45.74% 0.182 329.3)
XYZxyz(15.3443, 8.1337, 23.6788)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F87 #1F8A22
analogous
#571F8A #8A1F87 #8A1F51
triadic
#8A1F87 #878A1F #1F878A
tetradic
#8A1F87 #8A571F #1F8A22 #1F518A
square
#8A1F87 #8A571F #1F8A22 #1F518A
split-complementary
#8A1F87 #518A1F #1F8A57
monochromatic
#260925 #581456 #8A1F87 #BC2AB8 #D74CD3

Accessibility & contrast

On white

8.00
#8A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F87
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F87#FFFFFF#000000##FFFFFF
##8A1F871.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B488A
Deuteranopia (green-blind)
#3F5584
Tritanopia (blue-blind)
#8F2F52
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1f87;
/* rgb */ color: rgb(138, 31, 135);
/* oklch */ color: oklch(45.7% 0.182 329.3);
Tailwind
colors: {
  custom: {
    50: '#b068aa',
    500: '#8a1f87',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f87;
$custom-light: #b068aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f87",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 301.682,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45741,
    "c": 0.18219,
    "h": 329.3
  },
  "luminance": 0.08133
}

Semantic roles & 50–950 ramp

primary
#8A1F87
secondary
#4BBA4E
accent
#E64641
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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