#8B2297#8B2297

#8B2297 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.192 H 323.4°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8B2297
RGBrgb(139, 34, 151)
HSLhsl(294, 63%, 36%)
HSVhsv(294, 77%, 59%)
CMYKcmyk(7.9%, 77.5%, 0%, 40.8%)
CIE-LABlab(35.73, 57.66, -41.10)
CIE-LCHlch(35.73, 70.80, 324.52°)
OKLaboklab(47.13% 0.1545 -0.1148)
OKLCHoklch(47.13% 0.192 323.4)
XYZxyz(16.8049, 8.8684, 30.0988)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2297 #2E9722
analogous
#512297 #8B2297 #972269
triadic
#8B2297 #978B22 #22978B
tetradic
#8B2297 #975122 #2E9722 #226997
square
#8B2297 #975122 #2E9722 #226997
split-complementary
#8B2297 #699722 #229751
monochromatic
#2F0C33 #5D1765 #8B2297 #B92DC9 #CD5ADA

Accessibility & contrast

On white

7.57
#8B2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8B2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2297
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2297#FFFFFF#000000##FFFFFF
##8B22971.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#375894
Tritanopia (blue-blind)
#8D395C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2297;
/* rgb */ color: rgb(139, 34, 151);
/* oklch */ color: oklch(47.1% 0.192 323.4);
Tailwind
colors: {
  custom: {
    50: '#b16ab6',
    500: '#8b2297',
    950: '#000000',
  },
}
SCSS
$custom: #8b2297;
$custom-light: #b16ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2297",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 293.846,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47133,
    "c": 0.19245,
    "h": 323.4
  },
  "luminance": 0.08867
}

Semantic roles & 50–950 ramp

primary
#8B2297
secondary
#61BE57
accent
#E64252
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2297

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

Preview Lab → · Contrast checker → · Palette generator →

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