#8A1785#8A1785

#8A1785 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.188 H 330.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#8A1785
RGBrgb(138, 23, 133)
HSLhsl(303, 71%, 32%)
HSVhsv(303, 83%, 54%)
CMYKcmyk(0%, 83.3%, 3.6%, 45.9%)
CIE-LABlab(33.37, 57.51, -33.78)
CIE-LCHlch(33.37, 66.70, 329.57°)
OKLaboklab(45.07% 0.1631 -0.0934)
OKLCHoklch(45.07% 0.188 330.2)
XYZxyz(15.0212, 7.7107, 22.8829)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1785 #178A1C
analogous
#56178A #8A1785 #8A174C
triadic
#8A1785 #858A17 #17858A
tetradic
#8A1785 #8A5617 #178A1C #174C8A
square
#8A1785 #8A5617 #178A1C #174C8A
split-complementary
#8A1785 #4C8A17 #178A56
monochromatic
#210620 #560E52 #8A1785 #BE20B8 #DF3DD8

Accessibility & contrast

On white

8.26
#8A1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1785
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1785#FFFFFF#000000##FFFFFF
##8A17851.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004588
Deuteranopia (green-blind)
#3D5482
Tritanopia (blue-blind)
#8F2A4F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1785;
/* rgb */ color: rgb(138, 23, 133);
/* oklch */ color: oklch(45.1% 0.188 330.2);
Tailwind
colors: {
  custom: {
    50: '#b065a9',
    500: '#8a1785',
    950: '#000000',
  },
}
SCSS
$custom: #8a1785;
$custom-light: #b065a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1785",
  "rgb": {
    "r": 138,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 302.609,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45072,
    "c": 0.18795,
    "h": 330.2
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#8A1785
secondary
#3FBE45
accent
#EE413A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A1785

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

Preview Lab → · Contrast checker → · Palette generator →

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