#8A1B7C#8A1B7C

#8A1B7C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.178 H 334.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8A1B7C
RGBrgb(138, 27, 124)
HSLhsl(308, 67%, 32%)
HSVhsv(308, 80%, 54%)
CMYKcmyk(0%, 80.4%, 10.1%, 45.9%)
CIE-LABlab(33.23, 55.04, -28.38)
CIE-LCHlch(33.23, 61.93, 332.72°)
OKLaboklab(44.81% 0.1599 -0.0778)
OKLCHoklch(44.81% 0.178 334)
XYZxyz(14.5114, 7.6437, 19.7760)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B7C #1B8A29
analogous
#611B8A #8A1B7C #8A1B44
triadic
#8A1B7C #7C8A1B #1B7C8A
tetradic
#8A1B7C #8A611B #1B8A29 #1B448A
square
#8A1B7C #8A611B #1B8A29 #1B448A
split-complementary
#8A1B7C #448A1B #1B8A61
monochromatic
#240720 #57114E #8A1B7C #BD25AA #DB45C8

Accessibility & contrast

On white

8.31
#8A1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1B7C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B7C#FFFFFF#000000##FFFFFF
##8A1B7C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447F
Deuteranopia (green-blind)
#435479
Tritanopia (blue-blind)
#91274B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1b7c;
/* rgb */ color: rgb(138, 27, 124);
/* oklch */ color: oklch(44.8% 0.178 334.0);
Tailwind
colors: {
  custom: {
    50: '#b066a2',
    500: '#8a1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b7c;
$custom-light: #b066a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b7c",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 307.568,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44805,
    "c": 0.17784,
    "h": 334
  },
  "luminance": 0.07642
}

Semantic roles & 50–950 ramp

primary
#8A1B7C
secondary
#45BC54
accent
#EA533E
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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