#8D228B#8D228B

#8D228B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.7% C 0.184 H 328.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#8D228B
RGBrgb(141, 34, 139)
HSLhsl(301, 61%, 34%)
HSVhsv(301, 76%, 55%)
CMYKcmyk(0%, 75.9%, 1.4%, 44.7%)
CIE-LABlab(35.35, 56.00, -34.33)
CIE-LCHlch(35.35, 65.69, 328.49°)
OKLaboklab(46.69% 0.1572 -0.095)
OKLCHoklch(46.69% 0.184 328.9)
XYZxyz(16.2166, 8.6721, 25.2409)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D228B #228D24
analogous
#59228D #8D228B #8D2256
triadic
#8D228B #8B8D22 #228B8D
tetradic
#8D228B #8D5922 #228D24 #22568D
square
#8D228B #8D5922 #228D24 #22568D
split-complementary
#8D228B #568D22 #228D59
monochromatic
#2A0A2A #5C165A #8D228B #BE2EBC #D654D3

Accessibility & contrast

On white

7.68
#8D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8D228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D228B
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D228B#FFFFFF#000000##FFFFFF
##8D228B1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4A8E
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#923255
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d228b;
/* rgb */ color: rgb(141, 34, 139);
/* oklch */ color: oklch(46.7% 0.184 328.9);
Tailwind
colors: {
  custom: {
    50: '#b26aad',
    500: '#8d228b',
    950: '#000000',
  },
}
SCSS
$custom: #8d228b;
$custom-light: #b26aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8d228b",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 301.121,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46691,
    "c": 0.18373,
    "h": 328.9
  },
  "luminance": 0.08671
}

Semantic roles & 50–950 ramp

primary
#8D228B
secondary
#51B953
accent
#E44744
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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