#8A1B8E#8A1B8E

#8A1B8E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.191 H 326.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8A1B8E
RGBrgb(138, 27, 142)
HSLhsl(298, 68%, 33%)
HSVhsv(298, 81%, 56%)
CMYKcmyk(2.8%, 81%, 0%, 44.3%)
CIE-LABlab(34.28, 57.96, -37.92)
CIE-LCHlch(34.28, 69.26, 326.81°)
OKLaboklab(45.89% 0.1597 -0.1055)
OKLCHoklch(45.89% 0.191 326.6)
XYZxyz(15.7554, 8.1413, 26.3275)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B8E #1F8E1B
analogous
#501B8E #8A1B8E #8E1B58
triadic
#8A1B8E #8E8A1B #1B8E8A
tetradic
#8A1B8E #8E501B #1F8E1B #1B588E
square
#8A1B8E #8E501B #1F8E1B #1B588E
split-complementary
#8A1B8E #588E1B #1B8E50
monochromatic
#260727 #58115B #8A1B8E #BC25C1 #D747DC

Accessibility & contrast

On white

7.99
#8A1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B8E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B8E#FFFFFF#000000##FFFFFF
##8A1B8E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#8E3155
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1b8e;
/* rgb */ color: rgb(138, 27, 142);
/* oklch */ color: oklch(45.9% 0.191 326.6);
Tailwind
colors: {
  custom: {
    50: '#b067af',
    500: '#8a1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b8e;
$custom-light: #b067af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b8e",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 297.913,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45887,
    "c": 0.19142,
    "h": 326.6
  },
  "luminance": 0.0814
}

Semantic roles & 50–950 ramp

primary
#8A1B8E
secondary
#4BBE47
accent
#EB3D43
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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