#8A1A8B#8A1A8B

#8A1A8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.190 H 327.7°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#8A1A8B
RGBrgb(138, 26, 139)
HSLhsl(299, 68%, 32%)
HSVhsv(299, 81%, 55%)
CMYKcmyk(0.7%, 81.3%, 0%, 45.5%)
CIE-LABlab(34.00, 57.72, -36.51)
CIE-LCHlch(34.00, 68.30, 327.69°)
OKLaboklab(45.63% 0.1607 -0.1014)
OKLCHoklch(45.63% 0.19 327.7)
XYZxyz(15.5106, 8.0073, 25.1497)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A8B #1B8B1A
analogous
#521A8B #8A1A8B #8B1A54
triadic
#8A1A8B #8B8A1A #1A8B8A
tetradic
#8A1A8B #8B521A #1B8B1A #1A548B
square
#8A1A8B #8B521A #1B8B1A #1A548B
split-complementary
#8A1A8B #548B1A #1A8B52
monochromatic
#240724 #571057 #8A1A8B #BD24BF #DB43DC

Accessibility & contrast

On white

8.07
#8A1A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A1A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A8B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A8B#FFFFFF#000000##FFFFFF
##8A1A8B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1a8b;
/* rgb */ color: rgb(138, 26, 139);
/* oklch */ color: oklch(45.6% 0.190 327.7);
Tailwind
colors: {
  custom: {
    50: '#b066ad',
    500: '#8a1a8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a8b;
$custom-light: #b066ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a8b",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 139
  },
  "hsl": {
    "h": 299.469,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.18997,
    "h": 327.7
  },
  "luminance": 0.08006
}

Semantic roles & 50–950 ramp

primary
#8A1A8B
secondary
#45BD44
accent
#EB3C3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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