#8B227F#8B227F

#8B227F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.173 H 333.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8B227F
RGBrgb(139, 34, 127)
HSLhsl(307, 61%, 34%)
HSVhsv(307, 76%, 55%)
CMYKcmyk(0%, 75.5%, 8.6%, 45.5%)
CIE-LABlab(34.33, 53.57, -28.52)
CIE-LCHlch(34.33, 60.69, 331.97°)
OKLaboklab(45.68% 0.1547 -0.0783)
OKLCHoklch(45.68% 0.173 333.2)
XYZxyz(15.0503, 8.1666, 20.8582)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B227F #228B2E
analogous
#63228B #8B227F #8B224B
triadic
#8B227F #7F8B22 #227F8B
tetradic
#8B227F #8B6322 #228B2E #224B8B
square
#8B227F #8B6322 #228B2E #224B8B
split-complementary
#8B227F #4B8B22 #228B63
monochromatic
#290A25 #5A1652 #8B227F #BC2EAC #D553C6

Accessibility & contrast

On white

7.98
#8B227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B227F
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B227F#FFFFFF#000000##FFFFFF
##8B227F1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4782
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#912D4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b227f;
/* rgb */ color: rgb(139, 34, 127);
/* oklch */ color: oklch(45.7% 0.173 333.2);
Tailwind
colors: {
  custom: {
    50: '#b069a4',
    500: '#8b227f',
    950: '#000000',
  },
}
SCSS
$custom: #8b227f;
$custom-light: #b069a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b227f",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 306.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45679,
    "c": 0.1734,
    "h": 333.2
  },
  "luminance": 0.08165
}

Semantic roles & 50–950 ramp

primary
#8B227F
secondary
#50B85C
accent
#E45644
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B227F

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

Preview Lab → · Contrast checker → · Palette generator →

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