#8B2A7D#8B2A7D

#8B2A7D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.162 H 334.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8B2A7D
RGBrgb(139, 42, 125)
HSLhsl(309, 54%, 35%)
HSVhsv(309, 70%, 55%)
CMYKcmyk(0%, 69.8%, 10.1%, 45.5%)
CIE-LABlab(35.26, 50.33, -25.82)
CIE-LCHlch(35.26, 56.57, 332.85°)
OKLaboklab(46.32% 0.146 -0.0705)
OKLCHoklch(46.32% 0.162 334.2)
XYZxyz(15.1772, 8.6268, 20.2639)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A7D #2A8B38
analogous
#682A8B #8B2A7D #8B2A4C
triadic
#8B2A7D #7D8B2A #2A7D8B
tetradic
#8B2A7D #8B682A #2A8B38 #2A4C8B
square
#8B2A7D #8B682A #2A8B38 #2A4C8B
split-complementary
#8B2A7D #4C8B2A #2A8B68
monochromatic
#2D0E28 #5C1C53 #8B2A7D #BA38A7 #CF60BF

Accessibility & contrast

On white

7.71
#8B2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8B2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2A7D
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A7D#FFFFFF#000000##FFFFFF
##8B2A7D1.007.712.737.71
#FFFFFF7.711.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A7F
Deuteranopia (green-blind)
#4A587B
Tritanopia (blue-blind)
#923250
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b2a7d;
/* rgb */ color: rgb(139, 42, 125);
/* oklch */ color: oklch(46.3% 0.162 334.2);
Tailwind
colors: {
  custom: {
    50: '#b06ca3',
    500: '#8b2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a7d;
$custom-light: #b06ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a7d",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 308.66,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46315,
    "c": 0.16216,
    "h": 334.2
  },
  "luminance": 0.08626
}

Semantic roles & 50–950 ramp

primary
#8B2A7D
secondary
#5CB569
accent
#DD604B
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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