#8B1F8B#8B1F8B

#8B1F8B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.186 H 328.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8B1F8B
RGBrgb(139, 31, 139)
HSLhsl(300, 64%, 33%)
HSVhsv(300, 78%, 55%)
CMYKcmyk(0%, 77.7%, 0%, 45.5%)
CIE-LABlab(34.67, 56.50, -35.43)
CIE-LCHlch(34.67, 66.69, 327.91°)
OKLaboklab(46.14% 0.1577 -0.0982)
OKLCHoklch(46.14% 0.186 328.1)
XYZxyz(15.7975, 8.3342, 25.1977)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F8B #1F8B1F
analogous
#551F8B #8B1F8B #8B1F55
triadic
#8B1F8B #8B8B1F #1F8B8B
tetradic
#8B1F8B #8B551F #1F8B1F #1F558B
square
#8B1F8B #8B551F #1F8B1F #1F558B
split-complementary
#8B1F8B #558B1F #1F8B55
monochromatic
#270927 #591459 #8B1F8B #BD2ABD #D74DD7

Accessibility & contrast

On white

7.88
#8B1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8B1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F8B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F8B#FFFFFF#000000##FFFFFF
##8B1F8B1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498E
Deuteranopia (green-blind)
#3E5688
Tritanopia (blue-blind)
#903154
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b1f8b;
/* rgb */ color: rgb(139, 31, 139);
/* oklch */ color: oklch(46.1% 0.186 328.1);
Tailwind
colors: {
  custom: {
    50: '#b068ad',
    500: '#8b1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f8b;
$custom-light: #b068ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f8b",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 300,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.46143,
    "c": 0.18581,
    "h": 328.1
  },
  "luminance": 0.08333
}

Semantic roles & 50–950 ramp

primary
#8B1F8B
secondary
#4CBA4C
accent
#E74141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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