#8B1F7E#8B1F7E

#8B1F7E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.176 H 333.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#8B1F7E
RGBrgb(139, 31, 126)
HSLhsl(307, 64%, 33%)
HSVhsv(307, 78%, 55%)
CMYKcmyk(0%, 77.7%, 9.4%, 45.5%)
CIE-LABlab(33.93, 54.39, -28.52)
CIE-LCHlch(33.93, 61.41, 332.33°)
OKLaboklab(45.38% 0.1575 -0.0782)
OKLCHoklch(45.38% 0.176 333.6)
XYZxyz(14.9035, 7.9766, 20.4893)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1F7E #1F8B2C
analogous
#621F8B #8B1F7E #8B1F48
triadic
#8B1F7E #7E8B1F #1F7E8B
tetradic
#8B1F7E #8B621F #1F8B2C #1F488B
square
#8B1F7E #8B621F #1F8B2C #1F488B
split-complementary
#8B1F7E #488B1F #1F8B62
monochromatic
#270923 #591451 #8B1F7E #BD2AAB #D74DC7

Accessibility & contrast

On white

8.09
#8B1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8B1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1F7E
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1F7E#FFFFFF#000000##FFFFFF
##8B1F7E1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#922A4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b1f7e;
/* rgb */ color: rgb(139, 31, 126);
/* oklch */ color: oklch(45.4% 0.176 333.6);
Tailwind
colors: {
  custom: {
    50: '#b068a4',
    500: '#8b1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8b1f7e;
$custom-light: #b068a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1f7e",
  "rgb": {
    "r": 139,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 307.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45379,
    "c": 0.17588,
    "h": 333.6
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#8B1F7E
secondary
#4CBA59
accent
#E75541
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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