#8B227E#8B227E

#8B227E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.173 H 333.6°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8B227E
RGBrgb(139, 34, 126)
HSLhsl(307, 61%, 34%)
HSVhsv(307, 76%, 55%)
CMYKcmyk(0%, 75.5%, 9.4%, 45.5%)
CIE-LABlab(34.27, 53.42, -27.98)
CIE-LCHlch(34.27, 60.30, 332.35°)
OKLaboklab(45.62% 0.1547 -0.0767)
OKLCHoklch(45.62% 0.173 333.6)
XYZxyz(14.9855, 8.1407, 20.5167)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B227E #228B2F
analogous
#64228B #8B227E #8B224A
triadic
#8B227E #7E8B22 #227E8B
tetradic
#8B227E #8B6422 #228B2F #224A8B
square
#8B227E #8B6422 #228B2F #224A8B
split-complementary
#8B227E #4A8B22 #228B64
monochromatic
#290A25 #5A1651 #8B227E #BC2EAB #D553C5

Accessibility & contrast

On white

7.99
#8B227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8B227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B227E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B227E#FFFFFF#000000##FFFFFF
##8B227E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4781
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#922C4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b227e;
/* rgb */ color: rgb(139, 34, 126);
/* oklch */ color: oklch(45.6% 0.173 333.6);
Tailwind
colors: {
  custom: {
    50: '#b069a3',
    500: '#8b227e',
    950: '#000000',
  },
}
SCSS
$custom: #8b227e;
$custom-light: #b069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b227e",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 307.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45624,
    "c": 0.17265,
    "h": 333.6
  },
  "luminance": 0.08139
}

Semantic roles & 50–950 ramp

primary
#8B227E
secondary
#50B85D
accent
#E45844
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B227E

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

Preview Lab → · Contrast checker → · Palette generator →

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