#8A1F84#8A1F84

#8A1F84 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.180 H 330.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8A1F84
RGBrgb(138, 31, 132)
HSLhsl(303, 63%, 33%)
HSVhsv(303, 78%, 54%)
CMYKcmyk(0%, 77.5%, 4.3%, 45.9%)
CIE-LABlab(34.09, 55.12, -32.03)
CIE-LCHlch(34.09, 63.75, 329.84°)
OKLaboklab(45.56% 0.1567 -0.0884)
OKLCHoklch(45.56% 0.18 330.6)
XYZxyz(15.1360, 8.0504, 22.5820)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F84 #1F8A25
analogous
#5A1F8A #8A1F84 #8A1F4F
triadic
#8A1F84 #848A1F #1F848A
tetradic
#8A1F84 #8A5A1F #1F8A25 #1F4F8A
square
#8A1F84 #8A5A1F #1F8A25 #1F4F8A
split-complementary
#8A1F84 #4F8A1F #1F8A5A
monochromatic
#260924 #581454 #8A1F84 #BC2AB4 #D74CCF

Accessibility & contrast

On white

8.05
#8A1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F84
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F84#FFFFFF#000000##FFFFFF
##8A1F841.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124787
Deuteranopia (green-blind)
#415581
Tritanopia (blue-blind)
#902E50
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1f84;
/* rgb */ color: rgb(138, 31, 132);
/* oklch */ color: oklch(45.6% 0.180 330.6);
Tailwind
colors: {
  custom: {
    50: '#b068a8',
    500: '#8a1f84',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f84;
$custom-light: #b068a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f84",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 303.364,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.17988,
    "h": 330.6
  },
  "luminance": 0.08049
}

Semantic roles & 50–950 ramp

primary
#8A1F84
secondary
#4BBA51
accent
#E64B41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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