#8B227D#8B227D

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

Color values

HEX#8B227D
RGBrgb(139, 34, 125)
HSLhsl(308, 61%, 34%)
HSVhsv(308, 76%, 55%)
CMYKcmyk(0%, 75.5%, 10.1%, 45.5%)
CIE-LABlab(34.22, 53.26, -27.44)
CIE-LCHlch(34.22, 59.91, 332.74°)
OKLaboklab(45.57% 0.1546 -0.0751)
OKLCHoklch(45.57% 0.172 334.1)
XYZxyz(14.9213, 8.1150, 20.1785)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B227D #228B30
analogous
#65228B #8B227D #8B2249
triadic
#8B227D #7D8B22 #227D8B
tetradic
#8B227D #8B6522 #228B30 #22498B
square
#8B227D #8B6522 #228B30 #22498B
split-complementary
#8B227D #498B22 #228B65
monochromatic
#290A25 #5A1651 #8B227D #BC2EA9 #D553C3

Accessibility & contrast

On white

8.01
#8B227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B227D
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B227D#FFFFFF#000000##FFFFFF
##8B227D1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#922C4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b227d;
/* rgb */ color: rgb(139, 34, 125);
/* oklch */ color: oklch(45.6% 0.172 334.1);
Tailwind
colors: {
  custom: {
    50: '#b069a3',
    500: '#8b227d',
    950: '#000000',
  },
}
SCSS
$custom: #8b227d;
$custom-light: #b069a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b227d",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 308,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45568,
    "c": 0.1719,
    "h": 334.1
  },
  "luminance": 0.08114
}

Semantic roles & 50–950 ramp

primary
#8B227D
secondary
#50B85E
accent
#E45944
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B227D

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

Preview Lab → · Contrast checker → · Palette generator →

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