#8A1F7A#8A1F7A

#8A1F7A is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.172 H 335.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#8A1F7A
RGBrgb(138, 31, 122)
HSLhsl(309, 63%, 33%)
HSVhsv(309, 78%, 54%)
CMYKcmyk(0%, 77.5%, 11.6%, 45.9%)
CIE-LABlab(33.54, 53.53, -26.64)
CIE-LCHlch(33.54, 59.79, 333.54°)
OKLaboklab(44.99% 0.1562 -0.0728)
OKLCHoklch(44.99% 0.172 335)
XYZxyz(14.4843, 7.7897, 19.1493)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F7A #1F8A2F
analogous
#641F8A #8A1F7A #8A1F44
triadic
#8A1F7A #7A8A1F #1F7A8A
tetradic
#8A1F7A #8A641F #1F8A2F #1F448A
square
#8A1F7A #8A641F #1F8A2F #1F448A
split-complementary
#8A1F7A #448A1F #1F8A64
monochromatic
#260922 #58144E #8A1F7A #BC2AA6 #D74CC2

Accessibility & contrast

On white

8.21
#8A1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F7A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F7A#FFFFFF#000000##FFFFFF
##8A1F7A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457C
Deuteranopia (green-blind)
#465478
Tritanopia (blue-blind)
#91284B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f7a;
/* rgb */ color: rgb(138, 31, 122);
/* oklch */ color: oklch(45.0% 0.172 335.0);
Tailwind
colors: {
  custom: {
    50: '#b067a1',
    500: '#8a1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f7a;
$custom-light: #b067a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f7a",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 308.972,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44994,
    "c": 0.17239,
    "h": 335
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#8A1F7A
secondary
#4BBA5C
accent
#E65A41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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