#8A1B85#8A1B85

#8A1B85 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.185 H 330.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8A1B85
RGBrgb(138, 27, 133)
HSLhsl(303, 67%, 32%)
HSVhsv(303, 80%, 54%)
CMYKcmyk(0%, 80.4%, 3.6%, 45.9%)
CIE-LABlab(33.74, 56.46, -33.21)
CIE-LCHlch(33.74, 65.50, 329.54°)
OKLaboklab(45.33% 0.1601 -0.0918)
OKLCHoklch(45.33% 0.185 330.2)
XYZxyz(15.1067, 7.8818, 22.9114)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B85 #1B8A20
analogous
#581B8A #8A1B85 #8A1B4D
triadic
#8A1B85 #858A1B #1B858A
tetradic
#8A1B85 #8A581B #1B8A20 #1B4D8A
square
#8A1B85 #8A581B #1B8A20 #1B4D8A
split-complementary
#8A1B85 #4D8A1B #1B8A58
monochromatic
#240722 #571154 #8A1B85 #BD25B6 #DB45D4

Accessibility & contrast

On white

8.15
#8A1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B85
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B85#FFFFFF#000000##FFFFFF
##8A1B851.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074688
Deuteranopia (green-blind)
#3F5482
Tritanopia (blue-blind)
#8F2C50
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1b85;
/* rgb */ color: rgb(138, 27, 133);
/* oklch */ color: oklch(45.3% 0.185 330.2);
Tailwind
colors: {
  custom: {
    50: '#b066a9',
    500: '#8a1b85',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b85;
$custom-light: #b066a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b85",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 302.703,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4533,
    "c": 0.18451,
    "h": 330.2
  },
  "luminance": 0.07881
}

Semantic roles & 50–950 ramp

primary
#8A1B85
secondary
#45BC4A
accent
#EA453E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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