#8B2F8A#8B2F8A

#8B2F8A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.166 H 328.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8B2F8A
RGBrgb(139, 47, 138)
HSLhsl(301, 49%, 36%)
HSVhsv(301, 66%, 55%)
CMYKcmyk(0%, 66.2%, 0.7%, 45.5%)
CIE-LABlab(36.66, 50.51, -31.65)
CIE-LCHlch(36.66, 59.61, 327.93°)
OKLaboklab(47.56% 0.1412 -0.0874)
OKLCHoklch(47.56% 0.166 328.2)
XYZxyz(16.2512, 9.3581, 24.9902)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2F8A #2F8B30
analogous
#5E2F8B #8B2F8A #8B2F5C
triadic
#8B2F8A #8A8B2F #2F8A8B
tetradic
#8B2F8A #8B5E2F #2F8B30 #2F5C8B
square
#8B2F8A #8B5E2F #2F8B30 #2F5C8B
split-complementary
#8B2F8A #5C8B2F #2F8B5E
monochromatic
#30102F #5D205D #8B2F8A #B93EB7 #CC68CB

Accessibility & contrast

On white

7.31
#8B2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8B2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2F8A
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2F8A#FFFFFF#000000##FFFFFF
##8B2F8A1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8D
Deuteranopia (green-blind)
#465B88
Tritanopia (blue-blind)
#8F3B58
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b2f8a;
/* rgb */ color: rgb(139, 47, 138);
/* oklch */ color: oklch(47.6% 0.166 328.2);
Tailwind
colors: {
  custom: {
    50: '#b06fac',
    500: '#8b2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8b2f8a;
$custom-light: #b06fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2f8a",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 300.652,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47557,
    "c": 0.16607,
    "h": 328.2
  },
  "luminance": 0.09357
}

Semantic roles & 50–950 ramp

primary
#8B2F8A
secondary
#63B364
accent
#D9504F
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8B2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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