#8A1B8C#8A1B8C

#8A1B8C is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.190 H 327.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8A1B8C
RGBrgb(138, 27, 140)
HSLhsl(299, 68%, 33%)
HSVhsv(299, 81%, 55%)
CMYKcmyk(1.4%, 80.7%, 0%, 45.1%)
CIE-LABlab(34.15, 57.62, -36.88)
CIE-LCHlch(34.15, 68.41, 327.38°)
OKLaboklab(45.76% 0.1598 -0.1025)
OKLCHoklch(45.76% 0.19 327.3)
XYZxyz(15.6066, 8.0817, 25.5438)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B8C #1D8C1B
analogous
#511B8C #8A1B8C #8C1B55
triadic
#8A1B8C #8C8A1B #1B8C8A
tetradic
#8A1B8C #8C511B #1D8C1B #1B558C
square
#8A1B8C #8C511B #1D8C1B #1B558C
split-complementary
#8A1B8C #558C1B #1B8C51
monochromatic
#250725 #571159 #8A1B8C #BD25BF #D946DB

Accessibility & contrast

On white

8.03
#8A1B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A1B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B8C
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B8C#FFFFFF#000000##FFFFFF
##8A1B8C1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#8E2F54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1b8c;
/* rgb */ color: rgb(138, 27, 140);
/* oklch */ color: oklch(45.8% 0.190 327.3);
Tailwind
colors: {
  custom: {
    50: '#b067ae',
    500: '#8a1b8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b8c;
$custom-light: #b067ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b8c",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 298.938,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45761,
    "c": 0.18987,
    "h": 327.3
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#8A1B8C
secondary
#48BD46
accent
#EB3D40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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