#8A1F9E#8A1F9E

#8A1F9E is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.2% C 0.201 H 320.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8A1F9E
RGBrgb(138, 31, 158)
HSLhsl(291, 67%, 37%)
HSVhsv(291, 80%, 62%)
CMYKcmyk(12.7%, 80.4%, 0%, 38%)
CIE-LABlab(35.70, 59.65, -45.41)
CIE-LCHlch(35.70, 74.97, 322.72°)
OKLaboklab(47.22% 0.1551 -0.1274)
OKLCHoklch(47.22% 0.201 320.6)
XYZxyz(17.1420, 8.8528, 33.1470)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F9E #339E1F
analogous
#4A1F9E #8A1F9E #9E1F73
triadic
#8A1F9E #9E8A1F #1F9E8A
tetradic
#8A1F9E #9E4A1F #339E1F #1F739E
square
#8A1F9E #9E4A1F #339E1F #1F739E
split-complementary
#8A1F9E #739E1F #1F9E4A
monochromatic
#310B38 #5D156B #8A1F9E #B729D1 #C959DE

Accessibility & contrast

On white

7.58
#8A1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F9E
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F9E#FFFFFF#000000##FFFFFF
##8A1F9E1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#2E589B
Tritanopia (blue-blind)
#8B3B5F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1f9e;
/* rgb */ color: rgb(138, 31, 158);
/* oklch */ color: oklch(47.2% 0.201 320.6);
Tailwind
colors: {
  custom: {
    50: '#b069bb',
    500: '#8a1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f9e;
$custom-light: #b069bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f9e",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 290.551,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.20068,
    "h": 320.6
  },
  "luminance": 0.08852
}

Semantic roles & 50–950 ramp

primary
#8A1F9E
secondary
#67C256
accent
#EA3E59
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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