#8A1A7F#8A1A7F

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

Color values

HEX#8A1A7F
RGBrgb(138, 26, 127)
HSLhsl(306, 68%, 32%)
HSVhsv(306, 81%, 54%)
CMYKcmyk(0%, 81.2%, 8%, 45.9%)
CIE-LABlab(33.30, 55.78, -30.16)
CIE-LCHlch(33.30, 63.41, 331.60°)
OKLaboklab(44.91% 0.1608 -0.0829)
OKLCHoklch(44.91% 0.181 332.7)
XYZxyz(14.6815, 7.6756, 20.7829)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A7F #1A8A25
analogous
#5D1A8A #8A1A7F #8A1A47
triadic
#8A1A7F #7F8A1A #1A7F8A
tetradic
#8A1A7F #8A5D1A #1A8A25 #1A478A
square
#8A1A7F #8A5D1A #1A8A25 #1A478A
split-complementary
#8A1A7F #478A1A #1A8A5D
monochromatic
#230720 #571050 #8A1A7F #BD24AE #DC43CD

Accessibility & contrast

On white

8.28
#8A1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1A7F
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A7F#FFFFFF#000000##FFFFFF
##8A1A7F1.008.282.538.28
#FFFFFF8.281.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124482
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#90284C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1a7f;
/* rgb */ color: rgb(138, 26, 127);
/* oklch */ color: oklch(44.9% 0.181 332.7);
Tailwind
colors: {
  custom: {
    50: '#b066a4',
    500: '#8a1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a7f;
$custom-light: #b066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a7f",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 305.893,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.18095,
    "h": 332.7
  },
  "luminance": 0.07674
}

Semantic roles & 50–950 ramp

primary
#8A1A7F
secondary
#43BD4F
accent
#EB4E3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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