#8A1F7E#8A1F7E

#8A1F7E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.175 H 333.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#8A1F7E
RGBrgb(138, 31, 126)
HSLhsl(307, 63%, 33%)
HSVhsv(307, 78%, 54%)
CMYKcmyk(0%, 77.5%, 8.7%, 45.9%)
CIE-LABlab(33.75, 54.15, -28.81)
CIE-LCHlch(33.75, 61.34, 331.99°)
OKLaboklab(45.22% 0.1565 -0.0791)
OKLCHoklch(45.22% 0.175 333.2)
XYZxyz(14.7372, 7.8909, 20.4815)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F7E #1F8A2B
analogous
#601F8A #8A1F7E #8A1F48
triadic
#8A1F7E #7E8A1F #1F7E8A
tetradic
#8A1F7E #8A601F #1F8A2B #1F488A
square
#8A1F7E #8A601F #1F8A2B #1F488A
split-complementary
#8A1F7E #488A1F #1F8A60
monochromatic
#260923 #581450 #8A1F7E #BC2AAC #D74CC7

Accessibility & contrast

On white

8.15
#8A1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1F7E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F7E#FFFFFF#000000##FFFFFF
##8A1F7E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4681
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#902A4D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f7e;
/* rgb */ color: rgb(138, 31, 126);
/* oklch */ color: oklch(45.2% 0.175 333.2);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8a1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f7e;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f7e",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 306.729,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45217,
    "c": 0.17534,
    "h": 333.2
  },
  "luminance": 0.0789
}

Semantic roles & 50–950 ramp

primary
#8A1F7E
secondary
#4BBA58
accent
#E65441
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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