#8F228D#8F228D

#8F228D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.186 H 328.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8F228D
RGBrgb(143, 34, 141)
HSLhsl(301, 62%, 35%)
HSVhsv(301, 76%, 56%)
CMYKcmyk(0%, 76.2%, 1.4%, 43.9%)
CIE-LABlab(35.81, 56.78, -34.81)
CIE-LCHlch(35.81, 66.60, 328.49°)
OKLaboklab(47.13% 0.1594 -0.0964)
OKLCHoklch(47.13% 0.186 328.8)
XYZxyz(16.7073, 8.9080, 26.0336)
Luminance0.0891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F228D #228F24
analogous
#5B228F #8F228D #8F2257
triadic
#8F228D #8D8F22 #228D8F
tetradic
#8F228D #8F5B22 #228F24 #22578F
square
#8F228D #8F5B22 #228F24 #22578F
split-complementary
#8F228D #578F22 #228F5B
monochromatic
#2C0A2B #5E165C #8F228D #C02EBE #D755D4

Accessibility & contrast

On white

7.55
#8F228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8F228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F228D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F228D#FFFFFF#000000##FFFFFF
##8F228D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B90
Deuteranopia (green-blind)
#42598A
Tritanopia (blue-blind)
#943356
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f228d;
/* rgb */ color: rgb(143, 34, 141);
/* oklch */ color: oklch(47.1% 0.186 328.8);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8f228d',
    950: '#000000',
  },
}
SCSS
$custom: #8f228d;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f228d",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 301.101,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47125,
    "c": 0.18628,
    "h": 328.8
  },
  "luminance": 0.08907
}

Semantic roles & 50–950 ramp

primary
#8F228D
secondary
#52BA54
accent
#E54643
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F228D

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

Preview Lab → · Contrast checker → · Palette generator →

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