#8A1F9D#8A1F9D

#8A1F9D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.2% C 0.200 H 320.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8A1F9D
RGBrgb(138, 31, 157)
HSLhsl(291, 67%, 37%)
HSVhsv(291, 80%, 62%)
CMYKcmyk(12.1%, 80.3%, 0%, 38.4%)
CIE-LABlab(35.63, 59.47, -44.91)
CIE-LCHlch(35.63, 74.52, 322.94°)
OKLaboklab(47.16% 0.1552 -0.1259)
OKLCHoklch(47.16% 0.2 320.9)
XYZxyz(17.0563, 8.8185, 32.6955)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F9D #329D1F
analogous
#4B1F9D #8A1F9D #9D1F71
triadic
#8A1F9D #9D8A1F #1F9D8A
tetradic
#8A1F9D #9D4B1F #329D1F #1F719D
square
#8A1F9D #9D4B1F #329D1F #1F719D
split-complementary
#8A1F9D #719D1F #1F9D4B
monochromatic
#300B37 #5D156A #8A1F9D #B729D0 #CA58DE

Accessibility & contrast

On white

7.60
#8A1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F9D
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F9D#FFFFFF#000000##FFFFFF
##8A1F9D1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#2F579A
Tritanopia (blue-blind)
#8B3A5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1f9d;
/* rgb */ color: rgb(138, 31, 157);
/* oklch */ color: oklch(47.2% 0.200 320.9);
Tailwind
colors: {
  custom: {
    50: '#b069bb',
    500: '#8a1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f9d;
$custom-light: #b069bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f9d",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 290.952,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47156,
    "c": 0.19986,
    "h": 320.9
  },
  "luminance": 0.08818
}

Semantic roles & 50–950 ramp

primary
#8A1F9D
secondary
#66C256
accent
#EA3E58
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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