#8F228B#8F228B

#8F228B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.185 H 329.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8F228B
RGBrgb(143, 34, 139)
HSLhsl(302, 62%, 35%)
HSVhsv(302, 76%, 56%)
CMYKcmyk(0%, 76.2%, 2.8%, 43.9%)
CIE-LABlab(35.69, 56.45, -33.76)
CIE-LCHlch(35.69, 65.78, 329.12°)
OKLaboklab(47.01% 0.1594 -0.0933)
OKLCHoklch(47.01% 0.185 329.7)
XYZxyz(16.5598, 8.8491, 25.2569)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F228B #228F26
analogous
#5D228F #8F228B #8F2254
triadic
#8F228B #8B8F22 #228B8F
tetradic
#8F228B #8F5D22 #228F26 #22548F
square
#8F228B #8F5D22 #228F26 #22548F
split-complementary
#8F228B #548F22 #228F5D
monochromatic
#2C0A2B #5E165B #8F228B #C02EBB #D755D2

Accessibility & contrast

On white

7.58
#8F228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8F228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F228B
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F228B#FFFFFF#000000##FFFFFF
##8F228B1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114B8E
Deuteranopia (green-blind)
#435988
Tritanopia (blue-blind)
#943255
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f228b;
/* rgb */ color: rgb(143, 34, 139);
/* oklch */ color: oklch(47.0% 0.185 329.7);
Tailwind
colors: {
  custom: {
    50: '#b36aad',
    500: '#8f228b',
    950: '#000000',
  },
}
SCSS
$custom: #8f228b;
$custom-light: #b36aad;
$custom-dark: #000000;
JSON
{
  "hex": "#8f228b",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 302.202,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47006,
    "c": 0.18473,
    "h": 329.7
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#8F228B
secondary
#52BA56
accent
#E54943
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F228B

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

Preview Lab → · Contrast checker → · Palette generator →

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