#8A1F9C#8A1F9C

#8A1F9C is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.1% C 0.199 H 321.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8A1F9C
RGBrgb(138, 31, 156)
HSLhsl(291, 67%, 37%)
HSVhsv(291, 80%, 61%)
CMYKcmyk(11.5%, 80.1%, 0%, 38.8%)
CIE-LABlab(35.57, 59.29, -44.41)
CIE-LCHlch(35.57, 74.07, 323.17°)
OKLaboklab(47.09% 0.1553 -0.1245)
OKLCHoklch(47.09% 0.199 321.3)
XYZxyz(16.9713, 8.7845, 32.2477)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F9C #319C1F
analogous
#4C1F9C #8A1F9C #9C1F70
triadic
#8A1F9C #9C8A1F #1F9C8A
tetradic
#8A1F9C #9C4C1F #319C1F #1F709C
square
#8A1F9C #9C4C1F #319C1F #1F709C
split-complementary
#8A1F9C #709C1F #1F9C4C
monochromatic
#300B36 #5D1569 #8A1F9C #B729CF #CA58DE

Accessibility & contrast

On white

7.62
#8A1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F9C
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F9C#FFFFFF#000000##FFFFFF
##8A1F9C1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#305799
Tritanopia (blue-blind)
#8B3A5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1f9c;
/* rgb */ color: rgb(138, 31, 156);
/* oklch */ color: oklch(47.1% 0.199 321.3);
Tailwind
colors: {
  custom: {
    50: '#b069ba',
    500: '#8a1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f9c;
$custom-light: #b069ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f9c",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 291.36,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47088,
    "c": 0.19903,
    "h": 321.3
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#8A1F9C
secondary
#65C155
accent
#EA3E57
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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