#8A1F8F#8A1F8F

#8A1F8F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.189 H 326.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#8A1F8F
RGBrgb(138, 31, 143)
HSLhsl(297, 64%, 34%)
HSVhsv(297, 78%, 56%)
CMYKcmyk(3.5%, 78.3%, 0%, 43.9%)
CIE-LABlab(34.74, 56.97, -37.80)
CIE-LCHlch(34.74, 68.37, 326.44°)
OKLaboklab(46.24% 0.1564 -0.1052)
OKLCHoklch(46.24% 0.189 326.1)
XYZxyz(15.9288, 8.3675, 26.7574)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F8F #248F1F
analogous
#521F8F #8A1F8F #8F1F5C
triadic
#8A1F8F #8F8A1F #1F8F8A
tetradic
#8A1F8F #8F521F #248F1F #1F5C8F
square
#8A1F8F #8F521F #248F1F #1F5C8F
split-complementary
#8A1F8F #5C8F1F #1F8F52
monochromatic
#29092A #59145D #8A1F8F #BB2AC1 #D34FD9

Accessibility & contrast

On white

7.86
#8A1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8A1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F8F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F8F#FFFFFF#000000##FFFFFF
##8A1F8F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#3A568C
Tritanopia (blue-blind)
#8E3356
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a1f8f;
/* rgb */ color: rgb(138, 31, 143);
/* oklch */ color: oklch(46.2% 0.189 326.1);
Tailwind
colors: {
  custom: {
    50: '#b068b0',
    500: '#8a1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f8f;
$custom-light: #b068b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f8f",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 297.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46235,
    "c": 0.1885,
    "h": 326.1
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#8A1F8F
secondary
#53BC4E
accent
#E74048
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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