#8A1F88#8A1F88

#8A1F88 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.183 H 328.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8A1F88
RGBrgb(138, 31, 136)
HSLhsl(301, 63%, 33%)
HSVhsv(301, 78%, 54%)
CMYKcmyk(0%, 77.5%, 1.4%, 45.9%)
CIE-LABlab(34.32, 55.78, -34.14)
CIE-LCHlch(34.32, 65.40, 328.53°)
OKLaboklab(45.8% 0.1567 -0.0945)
OKLCHoklch(45.8% 0.183 328.9)
XYZxyz(15.4150, 8.1620, 24.0513)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F88 #1F8A21
analogous
#561F8A #8A1F88 #8A1F53
triadic
#8A1F88 #888A1F #1F888A
tetradic
#8A1F88 #8A561F #1F8A21 #1F538A
square
#8A1F88 #8A561F #1F8A21 #1F538A
split-complementary
#8A1F88 #538A1F #1F8A56
monochromatic
#260925 #581457 #8A1F88 #BC2AB9 #D74CD4

Accessibility & contrast

On white

7.98
#8A1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F88
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F88#FFFFFF#000000##FFFFFF
##8A1F881.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09488B
Deuteranopia (green-blind)
#3F5685
Tritanopia (blue-blind)
#8F3053
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1f88;
/* rgb */ color: rgb(138, 31, 136);
/* oklch */ color: oklch(45.8% 0.183 328.9);
Tailwind
colors: {
  custom: {
    50: '#b068ab',
    500: '#8a1f88',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f88;
$custom-light: #b068ab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f88",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 301.121,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45802,
    "c": 0.18298,
    "h": 328.9
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#8A1F88
secondary
#4BBA4D
accent
#E64541
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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