#8A1B8F#8A1B8F

#8A1B8F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.192 H 326.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8A1B8F
RGBrgb(138, 27, 143)
HSLhsl(297, 68%, 33%)
HSVhsv(297, 81%, 56%)
CMYKcmyk(3.5%, 81.1%, 0%, 43.9%)
CIE-LABlab(34.34, 58.13, -38.43)
CIE-LCHlch(34.34, 69.69, 326.53°)
OKLaboklab(45.95% 0.1597 -0.107)
OKLCHoklch(45.95% 0.192 326.2)
XYZxyz(15.8308, 8.1714, 26.7247)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B8F #208F1B
analogous
#501B8F #8A1B8F #8F1B5A
triadic
#8A1B8F #8F8A1B #1B8F8A
tetradic
#8A1B8F #8F501B #208F1B #1B5A8F
square
#8A1B8F #8F501B #208F1B #1B5A8F
split-complementary
#8A1B8F #5A8F1B #1B8F50
monochromatic
#270828 #58115C #8A1B8F #BC25C2 #D648DC

Accessibility & contrast

On white

7.97
#8A1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B8F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B8F#FFFFFF#000000##FFFFFF
##8A1B8F1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#8E3156
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1b8f;
/* rgb */ color: rgb(138, 27, 143);
/* oklch */ color: oklch(46.0% 0.192 326.2);
Tailwind
colors: {
  custom: {
    50: '#b067b0',
    500: '#8a1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b8f;
$custom-light: #b067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b8f",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 297.414,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45951,
    "c": 0.19219,
    "h": 326.2
  },
  "luminance": 0.0817
}

Semantic roles & 50–950 ramp

primary
#8A1B8F
secondary
#4DBE48
accent
#EB3D44
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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