#8A1C7F#8A1C7F

#8A1C7F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.179 H 332.7°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8A1C7F
RGBrgb(138, 28, 127)
HSLhsl(306, 66%, 33%)
HSVhsv(306, 80%, 54%)
CMYKcmyk(0%, 79.7%, 8%, 45.9%)
CIE-LABlab(33.49, 55.22, -29.85)
CIE-LCHlch(33.49, 62.77, 331.61°)
OKLaboklab(45.05% 0.1592 -0.0821)
OKLCHoklch(45.05% 0.179 332.7)
XYZxyz(14.7273, 7.7674, 20.7982)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C7F #1C8A27
analogous
#5E1C8A #8A1C7F #8A1C48
triadic
#8A1C7F #7F8A1C #1C7F8A
tetradic
#8A1C7F #8A5E1C #1C8A27 #1C488A
square
#8A1C7F #8A5E1C #1C8A27 #1C488A
split-complementary
#8A1C7F #488A1C #1C8A5E
monochromatic
#240721 #571250 #8A1C7F #BD26AE #DA47CB

Accessibility & contrast

On white

8.22
#8A1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C7F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C7F#FFFFFF#000000##FFFFFF
##8A1C7F1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154582
Deuteranopia (green-blind)
#42547C
Tritanopia (blue-blind)
#90294D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1c7f;
/* rgb */ color: rgb(138, 28, 127);
/* oklch */ color: oklch(45.0% 0.179 332.7);
Tailwind
colors: {
  custom: {
    50: '#b066a4',
    500: '#8a1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c7f;
$custom-light: #b066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c7f",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 306,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.17909,
    "h": 332.7
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#8A1C7F
secondary
#46BB52
accent
#E9503F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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