#8A1F81#8A1F81

#8A1F81 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.178 H 331.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#8A1F81
RGBrgb(138, 31, 129)
HSLhsl(305, 63%, 33%)
HSVhsv(305, 78%, 54%)
CMYKcmyk(0%, 77.5%, 6.5%, 45.9%)
CIE-LABlab(33.92, 54.63, -30.43)
CIE-LCHlch(33.92, 62.53, 330.89°)
OKLaboklab(45.39% 0.1566 -0.0838)
OKLCHoklch(45.39% 0.178 331.9)
XYZxyz(14.9337, 7.9695, 21.5164)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F81 #1F8A28
analogous
#5D1F8A #8A1F81 #8A1F4B
triadic
#8A1F81 #818A1F #1F818A
tetradic
#8A1F81 #8A5D1F #1F8A28 #1F4B8A
square
#8A1F81 #8A5D1F #1F8A28 #1F4B8A
split-complementary
#8A1F81 #4B8A1F #1F8A5D
monochromatic
#260924 #581452 #8A1F81 #BC2AB0 #D74CCB

Accessibility & contrast

On white

8.10
#8A1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F81
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F81#FFFFFF#000000##FFFFFF
##8A1F811.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164684
Deuteranopia (green-blind)
#42557E
Tritanopia (blue-blind)
#902C4F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f81;
/* rgb */ color: rgb(138, 31, 129);
/* oklch */ color: oklch(45.4% 0.178 331.9);
Tailwind
colors: {
  custom: {
    50: '#b067a6',
    500: '#8a1f81',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f81;
$custom-light: #b067a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f81",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 305.047,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45388,
    "c": 0.17759,
    "h": 331.9
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#8A1F81
secondary
#4BBA54
accent
#E64F41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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