#8B228F#8B228F

#8B228F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.186 H 326.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#8B228F
RGBrgb(139, 34, 143)
HSLhsl(298, 62%, 35%)
HSVhsv(298, 76%, 56%)
CMYKcmyk(2.8%, 76.2%, 0%, 43.9%)
CIE-LABlab(35.24, 56.24, -36.99)
CIE-LCHlch(35.24, 67.32, 326.67°)
OKLaboklab(46.62% 0.1549 -0.1028)
OKLCHoklch(46.62% 0.186 326.4)
XYZxyz(16.1771, 8.6173, 26.7925)
Luminance0.0862 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B228F #268F22
analogous
#54228F #8B228F #8F225D
triadic
#8B228F #8F8B22 #228F8B
tetradic
#8B228F #8F5422 #268F22 #225D8F
square
#8B228F #8F5422 #268F22 #225D8F
split-complementary
#8B228F #5D8F22 #228F54
monochromatic
#2B0A2C #5B165E #8B228F #BB2EC0 #D255D7

Accessibility & contrast

On white

7.71
#8B228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8B228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B228F
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B228F#FFFFFF#000000##FFFFFF
##8B228F1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#3D578C
Tritanopia (blue-blind)
#8F3557
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b228f;
/* rgb */ color: rgb(139, 34, 143);
/* oklch */ color: oklch(46.6% 0.186 326.4);
Tailwind
colors: {
  custom: {
    50: '#b069b0',
    500: '#8b228f',
    950: '#000000',
  },
}
SCSS
$custom: #8b228f;
$custom-light: #b069b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b228f",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 297.798,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.18593,
    "h": 326.4
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#8B228F
secondary
#56BA52
accent
#E54349
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B228F

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

Preview Lab → · Contrast checker → · Palette generator →

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