#8A1D7B#8A1D7B

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

Color values

HEX#8A1D7B
RGBrgb(138, 29, 123)
HSLhsl(308, 65%, 33%)
HSVhsv(308, 79%, 54%)
CMYKcmyk(0%, 79%, 10.9%, 45.9%)
CIE-LABlab(33.38, 54.30, -27.52)
CIE-LCHlch(33.38, 60.88, 333.12°)
OKLaboklab(44.9% 0.1581 -0.0754)
OKLCHoklch(44.9% 0.175 334.5)
XYZxyz(14.4959, 7.7134, 19.4604)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D7B #1D8A2C
analogous
#621D8A #8A1D7B #8A1D44
triadic
#8A1D7B #7B8A1D #1D7B8A
tetradic
#8A1D7B #8A621D #1D8A2C #1D448A
square
#8A1D7B #8A621D #1D8A2C #1D448A
split-complementary
#8A1D7B #448A1D #1D8A62
monochromatic
#250821 #57124E #8A1D7B #BD28A8 #D949C5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1D7B#FFFFFF#000000##FFFFFF
##8A1D7B1.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)
#1B447D
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#91274B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1d7b;
/* rgb */ color: rgb(138, 29, 123);
/* oklch */ color: oklch(44.9% 0.175 334.5);
Tailwind
colors: {
  custom: {
    50: '#b066a1',
    500: '#8a1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d7b;
$custom-light: #b066a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d7b",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 308.257,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44895,
    "c": 0.17517,
    "h": 334.5
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#8A1D7B
secondary
#48BB58
accent
#E85740
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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