#8B2287#8B2287

#8B2287 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.180 H 329.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8B2287
RGBrgb(139, 34, 135)
HSLhsl(302, 61%, 34%)
HSVhsv(302, 76%, 55%)
CMYKcmyk(0%, 75.5%, 2.9%, 45.5%)
CIE-LABlab(34.77, 54.88, -32.80)
CIE-LCHlch(34.77, 63.93, 329.14°)
OKLaboklab(46.14% 0.155 -0.0906)
OKLCHoklch(46.14% 0.18 329.7)
XYZxyz(15.5926, 8.3835, 23.7139)
Luminance0.0838 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2287 #228B26
analogous
#5B228B #8B2287 #8B2253
triadic
#8B2287 #878B22 #22878B
tetradic
#8B2287 #8B5B22 #228B26 #22538B
square
#8B2287 #8B5B22 #228B26 #22538B
split-complementary
#8B2287 #538B22 #228B5B
monochromatic
#290A27 #5A1657 #8B2287 #BC2EB7 #D553D0

Accessibility & contrast

On white

7.85
#8B2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8B2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2287
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2287#FFFFFF#000000##FFFFFF
##8B22871.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#415784
Tritanopia (blue-blind)
#903153
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b2287;
/* rgb */ color: rgb(139, 34, 135);
/* oklch */ color: oklch(46.1% 0.180 329.7);
Tailwind
colors: {
  custom: {
    50: '#b069aa',
    500: '#8b2287',
    950: '#000000',
  },
}
SCSS
$custom: #8b2287;
$custom-light: #b069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2287",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 302.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46139,
    "c": 0.17957,
    "h": 329.7
  },
  "luminance": 0.08382
}

Semantic roles & 50–950 ramp

primary
#8B2287
secondary
#50B854
accent
#E44A44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B2287

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

Preview Lab → · Contrast checker → · Palette generator →

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