#8B2284#8B2284

#8B2284 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.177 H 331.0°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8B2284
RGBrgb(139, 34, 132)
HSLhsl(304, 61%, 34%)
HSVhsv(304, 76%, 55%)
CMYKcmyk(0%, 75.5%, 5%, 45.5%)
CIE-LABlab(34.60, 54.38, -31.20)
CIE-LCHlch(34.60, 62.70, 330.15°)
OKLaboklab(45.96% 0.155 -0.086)
OKLCHoklch(45.96% 0.177 331)
XYZxyz(15.3843, 8.3002, 22.6172)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2284 #228B29
analogous
#5E228B #8B2284 #8B2250
triadic
#8B2284 #848B22 #22848B
tetradic
#8B2284 #8B5E22 #228B29 #22508B
square
#8B2284 #8B5E22 #228B29 #22508B
split-complementary
#8B2284 #508B22 #228B5E
monochromatic
#290A27 #5A1655 #8B2284 #BC2EB3 #D553CC

Accessibility & contrast

On white

7.90
#8B2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8B2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2284
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2284#FFFFFF#000000##FFFFFF
##8B22841.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184887
Deuteranopia (green-blind)
#435681
Tritanopia (blue-blind)
#912F51
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b2284;
/* rgb */ color: rgb(139, 34, 132);
/* oklch */ color: oklch(46.0% 0.177 331.0);
Tailwind
colors: {
  custom: {
    50: '#b069a8',
    500: '#8b2284',
    950: '#000000',
  },
}
SCSS
$custom: #8b2284;
$custom-light: #b069a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2284",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 304,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45964,
    "c": 0.17723,
    "h": 331
  },
  "luminance": 0.08299
}

Semantic roles & 50–950 ramp

primary
#8B2284
secondary
#50B857
accent
#E44F44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B2284

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

Preview Lab → · Contrast checker → · Palette generator →

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