#8B1F7D#8B1F7D

#8B1F7D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.175 H 334.0°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8B1F7D
RGBrgb(139, 31, 125)
HSLhsl(308, 64%, 33%)
HSVhsv(308, 78%, 55%)
CMYKcmyk(0%, 77.7%, 10.1%, 45.5%)
CIE-LABlab(33.88, 54.23, -27.97)
CIE-LCHlch(33.88, 61.02, 332.71°)
OKLaboklab(45.32% 0.1575 -0.0767)
OKLCHoklch(45.32% 0.175 334)
XYZxyz(14.8393, 7.9509, 20.1512)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F7D #1F8B2D
analogous
#631F8B #8B1F7D #8B1F47
triadic
#8B1F7D #7D8B1F #1F7D8B
tetradic
#8B1F7D #8B631F #1F8B2D #1F478B
square
#8B1F7D #8B631F #1F8B2D #1F478B
split-complementary
#8B1F7D #478B1F #1F8B63
monochromatic
#270923 #591450 #8B1F7D #BD2AAA #D74DC5

Accessibility & contrast

On white

8.11
#8B1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8B1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F7D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F7D#FFFFFF#000000##FFFFFF
##8B1F7D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#45557A
Tritanopia (blue-blind)
#922A4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b1f7d;
/* rgb */ color: rgb(139, 31, 125);
/* oklch */ color: oklch(45.3% 0.175 334.0);
Tailwind
colors: {
  custom: {
    50: '#b067a3',
    500: '#8b1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f7d;
$custom-light: #b067a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f7d",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 307.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45323,
    "c": 0.17514,
    "h": 334
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

primary
#8B1F7D
secondary
#4CBA5A
accent
#E75741
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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