#8B2A7F#8B2A7F

#8B2A7F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.164 H 333.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8B2A7F
RGBrgb(139, 42, 127)
HSLhsl(307, 54%, 35%)
HSVhsv(307, 70%, 55%)
CMYKcmyk(0%, 69.8%, 8.6%, 45.5%)
CIE-LABlab(35.36, 50.66, -26.90)
CIE-LCHlch(35.36, 57.36, 332.03°)
OKLaboklab(46.42% 0.1462 -0.0737)
OKLCHoklch(46.42% 0.164 333.3)
XYZxyz(15.3063, 8.6784, 20.9435)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A7F #2A8B36
analogous
#662A8B #8B2A7F #8B2A4E
triadic
#8B2A7F #7F8B2A #2A7F8B
tetradic
#8B2A7F #8B662A #2A8B36 #2A4E8B
square
#8B2A7F #8B662A #2A8B36 #2A4E8B
split-complementary
#8B2A7F #4E8B2A #2A8B66
monochromatic
#2D0E29 #5C1C54 #8B2A7F #BA38AA #CF60C1

Accessibility & contrast

On white

7.68
#8B2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8B2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2A7F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A7F#FFFFFF#000000##FFFFFF
##8B2A7F1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A81
Deuteranopia (green-blind)
#49587D
Tritanopia (blue-blind)
#913351
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b2a7f;
/* rgb */ color: rgb(139, 42, 127);
/* oklch */ color: oklch(46.4% 0.164 333.3);
Tailwind
colors: {
  custom: {
    50: '#b06ca4',
    500: '#8b2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a7f;
$custom-light: #b06ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a7f",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 307.423,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46422,
    "c": 0.16372,
    "h": 333.3
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#8B2A7F
secondary
#5CB567
accent
#DD5D4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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