#8A1F7B#8A1F7B

#8A1F7B is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.173 H 334.5°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#8A1F7B
RGBrgb(138, 31, 123)
HSLhsl(308, 63%, 33%)
HSVhsv(308, 78%, 54%)
CMYKcmyk(0%, 77.5%, 10.9%, 45.9%)
CIE-LABlab(33.59, 53.68, -27.18)
CIE-LCHlch(33.59, 60.17, 333.14°)
OKLaboklab(45.05% 0.1563 -0.0744)
OKLCHoklch(45.05% 0.173 334.5)
XYZxyz(14.5465, 7.8146, 19.4773)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1F7B #1F8A2E
analogous
#631F8A #8A1F7B #8A1F45
triadic
#8A1F7B #7B8A1F #1F7B8A
tetradic
#8A1F7B #8A631F #1F8A2E #1F458A
square
#8A1F7B #8A631F #1F8A2E #1F458A
split-complementary
#8A1F7B #458A1F #1F8A63
monochromatic
#260922 #58144E #8A1F7B #BC2AA8 #D74CC3

Accessibility & contrast

On white

8.19
#8A1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1F7B
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1F7B#FFFFFF#000000##FFFFFF
##8A1F7B1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457D
Deuteranopia (green-blind)
#455578
Tritanopia (blue-blind)
#91294B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1f7b;
/* rgb */ color: rgb(138, 31, 123);
/* oklch */ color: oklch(45.0% 0.173 334.5);
Tailwind
colors: {
  custom: {
    50: '#b067a1',
    500: '#8a1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1f7b;
$custom-light: #b067a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1f7b",
  "rgb": {
    "r": 138,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 308.411,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45049,
    "c": 0.17312,
    "h": 334.5
  },
  "luminance": 0.07813
}

Semantic roles & 50–950 ramp

primary
#8A1F7B
secondary
#4BBA5B
accent
#E65941
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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