#8B1A7E#8B1A7E

#8B1A7E is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.181 H 333.6°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8B1A7E
RGBrgb(139, 26, 126)
HSLhsl(307, 68%, 32%)
HSVhsv(307, 81%, 55%)
CMYKcmyk(0%, 81.3%, 9.4%, 45.5%)
CIE-LABlab(33.43, 55.85, -29.32)
CIE-LCHlch(33.43, 63.08, 332.30°)
OKLaboklab(45.02% 0.1618 -0.0805)
OKLCHoklch(45.02% 0.181 333.6)
XYZxyz(14.7829, 7.7354, 20.4491)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1A7E #1A8B27
analogous
#601A8B #8B1A7E #8B1A45
triadic
#8B1A7E #7E8B1A #1A7E8B
tetradic
#8B1A7E #8B601A #1A8B27 #1A458B
square
#8B1A7E #8B601A #1A8B27 #1A458B
split-complementary
#8B1A7E #458B1A #1A8B60
monochromatic
#240721 #57104F #8B1A7E #BF24AD #DC43CA

Accessibility & contrast

On white

8.25
#8B1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8B1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1A7E
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1A7E#FFFFFF#000000##FFFFFF
##8B1A7E1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#92274C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b1a7e;
/* rgb */ color: rgb(139, 26, 126);
/* oklch */ color: oklch(45.0% 0.181 333.6);
Tailwind
colors: {
  custom: {
    50: '#b166a4',
    500: '#8b1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8b1a7e;
$custom-light: #b166a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1a7e",
  "rgb": {
    "r": 139,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 306.903,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45015,
    "c": 0.18075,
    "h": 333.6
  },
  "luminance": 0.07734
}

Semantic roles & 50–950 ramp

primary
#8B1A7E
secondary
#44BD52
accent
#EB513C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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