#8A1D96#8A1D96

#8A1D96 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.196 H 323.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8A1D96
RGBrgb(138, 29, 150)
HSLhsl(294, 68%, 35%)
HSVhsv(294, 81%, 59%)
CMYKcmyk(8%, 80.7%, 0%, 41.2%)
CIE-LABlab(34.97, 58.79, -41.71)
CIE-LCHlch(34.97, 72.08, 324.65°)
OKLaboklab(46.54% 0.1575 -0.1166)
OKLCHoklch(46.54% 0.196 323.5)
XYZxyz(16.4251, 8.4850, 29.6209)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D96 #29961D
analogous
#4E1D96 #8A1D96 #961D65
triadic
#8A1D96 #968A1D #1D968A
tetradic
#8A1D96 #964E1D #29961D #1D6596
square
#8A1D96 #964E1D #29961D #1D6596
split-complementary
#8A1D96 #65961D #1D964E
monochromatic
#2C092F #5B1363 #8A1D96 #B927C9 #CF50DD

Accessibility & contrast

On white

7.79
#8A1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8A1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D96
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D96#FFFFFF#000000##FFFFFF
##8A1D961.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#345693
Tritanopia (blue-blind)
#8C365A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1d96;
/* rgb */ color: rgb(138, 29, 150);
/* oklch */ color: oklch(46.5% 0.196 323.5);
Tailwind
colors: {
  custom: {
    50: '#b068b5',
    500: '#8a1d96',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d96;
$custom-light: #b068b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d96",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 294.05,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46543,
    "c": 0.19597,
    "h": 323.5
  },
  "luminance": 0.08484
}

Semantic roles & 50–950 ramp

primary
#8A1D96
secondary
#5AC04F
accent
#EA3D4E
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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