#8B227B#8B227B

#8B227B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.170 H 335.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8B227B
RGBrgb(139, 34, 123)
HSLhsl(309, 61%, 34%)
HSVhsv(309, 76%, 55%)
CMYKcmyk(0%, 75.5%, 11.5%, 45.5%)
CIE-LABlab(34.12, 52.94, -26.35)
CIE-LCHlch(34.12, 59.14, 333.54°)
OKLaboklab(45.46% 0.1545 -0.072)
OKLCHoklch(45.46% 0.17 335)
XYZxyz(14.7948, 8.0644, 19.5124)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B227B #228B32
analogous
#67228B #8B227B #8B2247
triadic
#8B227B #7B8B22 #227B8B
tetradic
#8B227B #8B6722 #228B32 #22478B
square
#8B227B #8B6722 #228B32 #22478B
split-complementary
#8B227B #478B22 #228B67
monochromatic
#290A24 #5A164F #8B227B #BC2EA7 #D553C1

Accessibility & contrast

On white

8.04
#8B227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B227B
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B227B#FFFFFF#000000##FFFFFF
##8B227B1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#922B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b227b;
/* rgb */ color: rgb(139, 34, 123);
/* oklch */ color: oklch(45.5% 0.170 335.0);
Tailwind
colors: {
  custom: {
    50: '#b069a1',
    500: '#8b227b',
    950: '#000000',
  },
}
SCSS
$custom: #8b227b;
$custom-light: #b069a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b227b",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 309.143,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45459,
    "c": 0.17042,
    "h": 335
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#8B227B
secondary
#50B860
accent
#E45C44
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B227B

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

Preview Lab → · Contrast checker → · Palette generator →

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