#8A1F80#8A1F80

#8A1F80 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.177 H 332.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8A1F80
RGBrgb(138, 31, 128)
HSLhsl(306, 63%, 33%)
HSVhsv(306, 78%, 54%)
CMYKcmyk(0%, 77.5%, 7.2%, 45.9%)
CIE-LABlab(33.86, 54.47, -29.89)
CIE-LCHlch(33.86, 62.13, 331.25°)
OKLaboklab(45.33% 0.1566 -0.0822)
OKLCHoklch(45.33% 0.177 332.3)
XYZxyz(14.8676, 7.9430, 21.1680)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F80 #1F8A29
analogous
#5E1F8A #8A1F80 #8A1F4B
triadic
#8A1F80 #808A1F #1F808A
tetradic
#8A1F80 #8A5E1F #1F8A29 #1F4B8A
square
#8A1F80 #8A5E1F #1F8A29 #1F4B8A
split-complementary
#8A1F80 #4B8A1F #1F8A5E
monochromatic
#260923 #581452 #8A1F80 #BC2AAE #D74CCA

Accessibility & contrast

On white

8.11
#8A1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F80
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F80#FFFFFF#000000##FFFFFF
##8A1F801.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184683
Deuteranopia (green-blind)
#43557D
Tritanopia (blue-blind)
#902C4E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f80;
/* rgb */ color: rgb(138, 31, 128);
/* oklch */ color: oklch(45.3% 0.177 332.3);
Tailwind
colors: {
  custom: {
    50: '#b067a5',
    500: '#8a1f80',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f80;
$custom-light: #b067a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f80",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 305.607,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4533,
    "c": 0.17684,
    "h": 332.3
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#8A1F80
secondary
#4BBA55
accent
#E65141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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