#8A1D95#8A1D95

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

Color values

HEX#8A1D95
RGBrgb(138, 29, 149)
HSLhsl(295, 67%, 35%)
HSVhsv(295, 81%, 58%)
CMYKcmyk(7.4%, 80.5%, 0%, 41.6%)
CIE-LABlab(34.91, 58.61, -41.20)
CIE-LCHlch(34.91, 71.64, 324.90°)
OKLaboklab(46.48% 0.1576 -0.1151)
OKLCHoklch(46.48% 0.195 323.9)
XYZxyz(16.3449, 8.4530, 29.1986)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D95 #28951D
analogous
#4E1D95 #8A1D95 #951D64
triadic
#8A1D95 #958A1D #1D958A
tetradic
#8A1D95 #954E1D #28951D #1D6495
square
#8A1D95 #954E1D #28951D #1D6495
split-complementary
#8A1D95 #64951D #1D954E
monochromatic
#2B092F #5B1362 #8A1D95 #B927C8 #D050DD

Accessibility & contrast

On white

7.81
#8A1D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8A1D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D95
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D95#FFFFFF#000000##FFFFFF
##8A1D951.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#355692
Tritanopia (blue-blind)
#8D3559
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1d95;
/* rgb */ color: rgb(138, 29, 149);
/* oklch */ color: oklch(46.5% 0.195 323.9);
Tailwind
colors: {
  custom: {
    50: '#b068b5',
    500: '#8a1d95',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d95;
$custom-light: #b068b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d95",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 149
  },
  "hsl": {
    "h": 294.5,
    "s": 67.416,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46477,
    "c": 0.19517,
    "h": 323.9
  },
  "luminance": 0.08452
}

Semantic roles & 50–950 ramp

primary
#8A1D95
secondary
#59C04E
accent
#EA3D4D
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1D95

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

Preview Lab → · Contrast checker → · Palette generator →

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