#8A1F7F#8A1F7F

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

Color values

HEX#8A1F7F
RGBrgb(138, 31, 127)
HSLhsl(306, 63%, 33%)
HSVhsv(306, 78%, 54%)
CMYKcmyk(0%, 77.5%, 8%, 45.9%)
CIE-LABlab(33.81, 54.31, -29.35)
CIE-LCHlch(33.81, 61.74, 331.61°)
OKLaboklab(45.27% 0.1565 -0.0806)
OKLCHoklch(45.27% 0.176 332.7)
XYZxyz(14.8021, 7.9168, 20.8231)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F7F #1F8A2A
analogous
#5F1F8A #8A1F7F #8A1F49
triadic
#8A1F7F #7F8A1F #1F7F8A
tetradic
#8A1F7F #8A5F1F #1F8A2A #1F498A
square
#8A1F7F #8A5F1F #1F8A2A #1F498A
split-complementary
#8A1F7F #498A1F #1F8A5F
monochromatic
#260923 #581451 #8A1F7F #BC2AAD #D74CC9

Accessibility & contrast

On white

8.13
#8A1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F7F
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F7F#FFFFFF#000000##FFFFFF
##8A1F7F1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194682
Deuteranopia (green-blind)
#43557C
Tritanopia (blue-blind)
#902B4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f7f;
/* rgb */ color: rgb(138, 31, 127);
/* oklch */ color: oklch(45.3% 0.176 332.7);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8a1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f7f;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f7f",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 306.168,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.17609,
    "h": 332.7
  },
  "luminance": 0.07916
}

Semantic roles & 50–950 ramp

primary
#8A1F7F
secondary
#4BBA57
accent
#E65241
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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