#8A1F7D#8A1F7D

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

Color values

HEX#8A1F7D
RGBrgb(138, 31, 125)
HSLhsl(307, 63%, 33%)
HSVhsv(307, 78%, 54%)
CMYKcmyk(0%, 77.5%, 9.4%, 45.9%)
CIE-LABlab(33.70, 54.00, -28.27)
CIE-LCHlch(33.70, 60.95, 332.37°)
OKLaboklab(45.16% 0.1564 -0.0775)
OKLCHoklch(45.16% 0.175 333.6)
XYZxyz(14.6730, 7.8652, 20.1434)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F7D #1F8A2C
analogous
#611F8A #8A1F7D #8A1F47
triadic
#8A1F7D #7D8A1F #1F7D8A
tetradic
#8A1F7D #8A611F #1F8A2C #1F478A
square
#8A1F7D #8A611F #1F8A2C #1F478A
split-complementary
#8A1F7D #478A1F #1F8A61
monochromatic
#260922 #581450 #8A1F7D #BC2AAA #D74CC6

Accessibility & contrast

On white

8.16
#8A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F7D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F7D#FFFFFF#000000##FFFFFF
##8A1F7D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4580
Deuteranopia (green-blind)
#44557A
Tritanopia (blue-blind)
#912A4C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f7d;
/* rgb */ color: rgb(138, 31, 125);
/* oklch */ color: oklch(45.2% 0.175 333.6);
Tailwind
colors: {
  custom: {
    50: '#b067a3',
    500: '#8a1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f7d;
$custom-light: #b067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f7d",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 307.29,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4516,
    "c": 0.17459,
    "h": 333.6
  },
  "luminance": 0.07864
}

Semantic roles & 50–950 ramp

primary
#8A1F7D
secondary
#4BBA59
accent
#E65541
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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