#8A1D8F#8A1D8F

#8A1D8F is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.190 H 326.1°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#8A1D8F
RGBrgb(138, 29, 143)
HSLhsl(297, 66%, 34%)
HSVhsv(297, 80%, 56%)
CMYKcmyk(3.5%, 79.7%, 0%, 43.9%)
CIE-LABlab(34.53, 57.57, -38.12)
CIE-LCHlch(34.53, 69.05, 326.49°)
OKLaboklab(46.09% 0.1581 -0.1061)
OKLCHoklch(46.09% 0.19 326.1)
XYZxyz(15.8782, 8.2663, 26.7405)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D8F #228F1D
analogous
#511D8F #8A1D8F #8F1D5B
triadic
#8A1D8F #8F8A1D #1D8F8A
tetradic
#8A1D8F #8F511D #228F1D #1D5B8F
square
#8A1D8F #8F511D #228F1D #1D5B8F
split-complementary
#8A1D8F #5B8F1D #1D8F51
monochromatic
#280829 #59135C #8A1D8F #BB27C2 #D44CDB

Accessibility & contrast

On white

7.92
#8A1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D8F
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D8F#FFFFFF#000000##FFFFFF
##8A1D8F1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#39568C
Tritanopia (blue-blind)
#8E3256
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1d8f;
/* rgb */ color: rgb(138, 29, 143);
/* oklch */ color: oklch(46.1% 0.190 326.1);
Tailwind
colors: {
  custom: {
    50: '#b067b0',
    500: '#8a1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d8f;
$custom-light: #b067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d8f",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 297.368,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46089,
    "c": 0.19039,
    "h": 326.1
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#8A1D8F
secondary
#50BD4B
accent
#E93F46
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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