#8A1F8A#8A1F8A

#8A1F8A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.185 H 328.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8A1F8A
RGBrgb(138, 31, 138)
HSLhsl(300, 63%, 33%)
HSVhsv(300, 78%, 54%)
CMYKcmyk(0%, 77.5%, 0%, 45.9%)
CIE-LABlab(34.44, 56.12, -35.19)
CIE-LCHlch(34.44, 66.24, 327.91°)
OKLaboklab(45.92% 0.1566 -0.0976)
OKLCHoklch(45.92% 0.185 328.1)
XYZxyz(15.5585, 8.2194, 24.8069)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F8A #1F8A1F
analogous
#541F8A #8A1F8A #8A1F54
triadic
#8A1F8A #8A8A1F #1F8A8A
tetradic
#8A1F8A #8A541F #1F8A1F #1F548A
square
#8A1F8A #8A541F #1F8A1F #1F548A
split-complementary
#8A1F8A #548A1F #1F8A54
monochromatic
#260926 #581458 #8A1F8A #BC2ABC #D74CD7

Accessibility & contrast

On white

7.94
#8A1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F8A
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F8A#FFFFFF#000000##FFFFFF
##8A1F8A1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03488D
Deuteranopia (green-blind)
#3D5687
Tritanopia (blue-blind)
#8F3154
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1f8a;
/* rgb */ color: rgb(138, 31, 138);
/* oklch */ color: oklch(45.9% 0.185 328.1);
Tailwind
colors: {
  custom: {
    50: '#b068ac',
    500: '#8a1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f8a;
$custom-light: #b068ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f8a",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45924,
    "c": 0.18454,
    "h": 328.1
  },
  "luminance": 0.08218
}

Semantic roles & 50–950 ramp

primary
#8A1F8A
secondary
#4BBA4B
accent
#E64141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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