#8B227C#8B227C

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

Color values

HEX#8B227C
RGBrgb(139, 34, 124)
HSLhsl(309, 61%, 34%)
HSVhsv(309, 76%, 55%)
CMYKcmyk(0%, 75.5%, 10.8%, 45.5%)
CIE-LABlab(34.17, 53.10, -26.89)
CIE-LCHlch(34.17, 59.52, 333.14°)
OKLaboklab(45.51% 0.1545 -0.0736)
OKLCHoklch(45.51% 0.171 334.5)
XYZxyz(14.8577, 8.0896, 19.8438)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B227C #228B31
analogous
#66228B #8B227C #8B2248
triadic
#8B227C #7C8B22 #227C8B
tetradic
#8B227C #8B6622 #228B31 #22488B
square
#8B227C #8B6622 #228B31 #22488B
split-complementary
#8B227C #488B22 #228B66
monochromatic
#290A24 #5A1650 #8B227C #BC2EA8 #D553C2

Accessibility & contrast

On white

8.02
#8B227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8B227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B227C
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B227C#FFFFFF#000000##FFFFFF
##8B227C1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477E
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#922B4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b227c;
/* rgb */ color: rgb(139, 34, 124);
/* oklch */ color: oklch(45.5% 0.171 334.5);
Tailwind
colors: {
  custom: {
    50: '#b069a2',
    500: '#8b227c',
    950: '#000000',
  },
}
SCSS
$custom: #8b227c;
$custom-light: #b069a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b227c",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 308.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45513,
    "c": 0.17115,
    "h": 334.5
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#8B227C
secondary
#50B85F
accent
#E45B44
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B227C

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

Preview Lab → · Contrast checker → · Palette generator →

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