#8A1C7B#8A1C7B

#8A1C7B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.176 H 334.5°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#8A1C7B
RGBrgb(138, 28, 123)
HSLhsl(308, 66%, 33%)
HSVhsv(308, 80%, 54%)
CMYKcmyk(0%, 79.7%, 10.9%, 45.9%)
CIE-LABlab(33.28, 54.60, -27.68)
CIE-LCHlch(33.28, 61.22, 333.11°)
OKLaboklab(44.82% 0.159 -0.0758)
OKLCHoklch(44.82% 0.176 334.5)
XYZxyz(14.4718, 7.6651, 19.4524)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C7B #1C8A2B
analogous
#621C8A #8A1C7B #8A1C44
triadic
#8A1C7B #7B8A1C #1C7B8A
tetradic
#8A1C7B #8A621C #1C8A2B #1C448A
square
#8A1C7B #8A621C #1C8A2B #1C448A
split-complementary
#8A1C7B #448A1C #1C8A62
monochromatic
#240720 #57124E #8A1C7B #BD26A8 #DA47C6

Accessibility & contrast

On white

8.29
#8A1C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A1C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C7B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C7B#FFFFFF#000000##FFFFFF
##8A1C7B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447D
Deuteranopia (green-blind)
#445478
Tritanopia (blue-blind)
#91274B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1c7b;
/* rgb */ color: rgb(138, 28, 123);
/* oklch */ color: oklch(44.8% 0.176 334.5);
Tailwind
colors: {
  custom: {
    50: '#b066a1',
    500: '#8a1c7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c7b;
$custom-light: #b066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c7b",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 308.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44821,
    "c": 0.17616,
    "h": 334.5
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#8A1C7B
secondary
#46BB56
accent
#E9563F
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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