#8D228A#8D228A

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

Color values

HEX#8D228A
RGBrgb(141, 34, 138)
HSLhsl(302, 61%, 34%)
HSVhsv(302, 76%, 55%)
CMYKcmyk(0%, 75.9%, 2.1%, 44.7%)
CIE-LABlab(35.29, 55.83, -33.81)
CIE-LCHlch(35.29, 65.27, 328.80°)
OKLaboklab(46.63% 0.1572 -0.0935)
OKLCHoklch(46.63% 0.183 329.3)
XYZxyz(16.1439, 8.6430, 24.8578)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D228A #228D25
analogous
#5B228D #8D228A #8D2255
triadic
#8D228A #8A8D22 #228A8D
tetradic
#8D228A #8D5B22 #228D25 #22558D
square
#8D228A #8D5B22 #228D25 #22558D
split-complementary
#8D228A #558D22 #228D5B
monochromatic
#2A0A29 #5C165A #8D228A #BE2EBA #D654D2

Accessibility & contrast

On white

7.70
#8D228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D228A
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D228A#FFFFFF#000000##FFFFFF
##8D228A1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#415887
Tritanopia (blue-blind)
#923254
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d228a;
/* rgb */ color: rgb(141, 34, 138);
/* oklch */ color: oklch(46.6% 0.183 329.3);
Tailwind
colors: {
  custom: {
    50: '#b269ac',
    500: '#8d228a',
    950: '#000000',
  },
}
SCSS
$custom: #8d228a;
$custom-light: #b269ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8d228a",
  "rgb": {
    "r": 141,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 301.682,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.46632,
    "c": 0.18294,
    "h": 329.3
  },
  "luminance": 0.08642
}

Semantic roles & 50–950 ramp

primary
#8D228A
secondary
#51B954
accent
#E44844
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D228A

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

Preview Lab → · Contrast checker → · Palette generator →

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