#8F228A#8F228A

#8F228A is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.184 H 330.1°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8F228A
RGBrgb(143, 34, 138)
HSLhsl(303, 62%, 35%)
HSVhsv(303, 76%, 56%)
CMYKcmyk(0%, 76.2%, 3.5%, 43.9%)
CIE-LABlab(35.64, 56.28, -33.24)
CIE-LCHlch(35.64, 65.36, 329.44°)
OKLaboklab(46.95% 0.1594 -0.0918)
OKLCHoklch(46.95% 0.184 330.1)
XYZxyz(16.4871, 8.8200, 24.8739)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F228A #228F27
analogous
#5D228F #8F228A #8F2254
triadic
#8F228A #8A8F22 #228A8F
tetradic
#8F228A #8F5D22 #228F27 #22548F
square
#8F228A #8F5D22 #228F27 #22548F
split-complementary
#8F228A #548F22 #228F5D
monochromatic
#2C0A2B #5E165A #8F228A #C02EBA #D755D1

Accessibility & contrast

On white

7.60
#8F228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8F228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F228A
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F228A#FFFFFF#000000##FFFFFF
##8F228A1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#435987
Tritanopia (blue-blind)
#943154
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f228a;
/* rgb */ color: rgb(143, 34, 138);
/* oklch */ color: oklch(46.9% 0.184 330.1);
Tailwind
colors: {
  custom: {
    50: '#b36aac',
    500: '#8f228a',
    950: '#000000',
  },
}
SCSS
$custom: #8f228a;
$custom-light: #b36aac;
$custom-dark: #000000;
JSON
{
  "hex": "#8f228a",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 302.752,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46947,
    "c": 0.18395,
    "h": 330.1
  },
  "luminance": 0.08819
}

Semantic roles & 50–950 ramp

primary
#8F228A
secondary
#52BA57
accent
#E54B43
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F228A

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

Preview Lab → · Contrast checker → · Palette generator →

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