#8A1B8B#8A1B8B

#8A1B8B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.189 H 327.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8A1B8B
RGBrgb(138, 27, 139)
HSLhsl(299, 67%, 33%)
HSVhsv(299, 81%, 55%)
CMYKcmyk(0.7%, 80.6%, 0%, 45.5%)
CIE-LABlab(34.09, 57.45, -36.36)
CIE-LCHlch(34.09, 67.99, 327.67°)
OKLaboklab(45.7% 0.1599 -0.1009)
OKLCHoklch(45.7% 0.189 327.7)
XYZxyz(15.5332, 8.0524, 25.1572)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B8B #1C8B1B
analogous
#521B8B #8A1B8B #8B1B54
triadic
#8A1B8B #8B8A1B #1B8B8A
tetradic
#8A1B8B #8B521B #1C8B1B #1B548B
square
#8A1B8B #8B521B #1C8B1B #1B548B
split-complementary
#8A1B8B #548B1B #1B8B52
monochromatic
#240725 #571158 #8A1B8B #BD25BE #DA45DB

Accessibility & contrast

On white

8.05
#8A1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B8B
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B8B#FFFFFF#000000##FFFFFF
##8A1B8B1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3B5588
Tritanopia (blue-blind)
#8E2F53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1b8b;
/* rgb */ color: rgb(138, 27, 139);
/* oklch */ color: oklch(45.7% 0.189 327.7);
Tailwind
colors: {
  custom: {
    50: '#b067ad',
    500: '#8a1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b8b;
$custom-light: #b067ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b8b",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 299.464,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45698,
    "c": 0.18909,
    "h": 327.7
  },
  "luminance": 0.08051
}

Semantic roles & 50–950 ramp

primary
#8A1B8B
secondary
#46BC45
accent
#EA3D3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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