#8A1F96#8A1F96

#8A1F96 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.7% C 0.194 H 323.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8A1F96
RGBrgb(138, 31, 150)
HSLhsl(294, 66%, 35%)
HSVhsv(294, 79%, 59%)
CMYKcmyk(8%, 79.3%, 0%, 41.2%)
CIE-LABlab(35.18, 58.20, -41.38)
CIE-LCHlch(35.18, 71.42, 324.59°)
OKLaboklab(46.69% 0.1559 -0.1156)
OKLCHoklch(46.69% 0.194 323.4)
XYZxyz(16.4757, 8.5863, 29.6378)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F96 #2B961F
analogous
#4F1F96 #8A1F96 #961F66
triadic
#8A1F96 #968A1F #1F968A
tetradic
#8A1F96 #964F1F #2B961F #1F6696
square
#8A1F96 #964F1F #2B961F #1F6696
split-complementary
#8A1F96 #66961F #1F964F
monochromatic
#2D0A31 #5B1563 #8A1F96 #B929C9 #CE54DC

Accessibility & contrast

On white

7.73
#8A1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F96
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F96#FFFFFF#000000##FFFFFF
##8A1F961.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#355793
Tritanopia (blue-blind)
#8C375A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1f96;
/* rgb */ color: rgb(138, 31, 150);
/* oklch */ color: oklch(46.7% 0.194 323.4);
Tailwind
colors: {
  custom: {
    50: '#b068b5',
    500: '#8a1f96',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f96;
$custom-light: #b068b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f96",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 293.95,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46686,
    "c": 0.19413,
    "h": 323.4
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#8A1F96
secondary
#5DBF52
accent
#E93F50
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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