#8B227A#8B227A

#8B227A is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.170 H 335.5°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8B227A
RGBrgb(139, 34, 122)
HSLhsl(310, 61%, 34%)
HSVhsv(310, 76%, 55%)
CMYKcmyk(0%, 75.5%, 12.2%, 45.5%)
CIE-LABlab(34.06, 52.79, -25.80)
CIE-LCHlch(34.06, 58.76, 333.95°)
OKLaboklab(45.41% 0.1544 -0.0704)
OKLCHoklch(45.41% 0.17 335.5)
XYZxyz(14.7325, 8.0395, 19.1844)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B227A #228B33
analogous
#68228B #8B227A #8B2246
triadic
#8B227A #7A8B22 #227A8B
tetradic
#8B227A #8B6822 #228B33 #22468B
square
#8B227A #8B6822 #228B33 #22468B
split-complementary
#8B227A #468B22 #228B68
monochromatic
#290A24 #5A164F #8B227A #BC2EA5 #D553C0

Accessibility & contrast

On white

8.05
#8B227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8B227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B227A
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B227A#FFFFFF#000000##FFFFFF
##8B227A1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#485678
Tritanopia (blue-blind)
#922A4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b227a;
/* rgb */ color: rgb(139, 34, 122);
/* oklch */ color: oklch(45.4% 0.170 335.5);
Tailwind
colors: {
  custom: {
    50: '#b069a1',
    500: '#8b227a',
    950: '#000000',
  },
}
SCSS
$custom: #8b227a;
$custom-light: #b069a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b227a",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 309.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45405,
    "c": 0.16968,
    "h": 335.5
  },
  "luminance": 0.08038
}

Semantic roles & 50–950 ramp

primary
#8B227A
secondary
#50B861
accent
#E45E44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B227A

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

Preview Lab → · Contrast checker → · Palette generator →

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