#8F228C#8F228C

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

Color values

HEX#8F228C
RGBrgb(143, 34, 140)
HSLhsl(302, 62%, 35%)
HSVhsv(302, 76%, 56%)
CMYKcmyk(0%, 76.2%, 2.1%, 43.9%)
CIE-LABlab(35.75, 56.62, -34.29)
CIE-LCHlch(35.75, 66.19, 328.80°)
OKLaboklab(47.07% 0.1594 -0.0948)
OKLCHoklch(47.07% 0.186 329.3)
XYZxyz(16.6332, 8.8784, 25.6435)
Luminance0.0888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F228C #228F25
analogous
#5B228F #8F228C #8F2256
triadic
#8F228C #8C8F22 #228C8F
tetradic
#8F228C #8F5B22 #228F25 #22568F
square
#8F228C #8F5B22 #228F25 #22568F
split-complementary
#8F228C #568F22 #228F5B
monochromatic
#2C0A2B #5E165C #8F228C #C02EBC #D755D3

Accessibility & contrast

On white

7.57
#8F228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F228C
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F228C#FFFFFF#000000##FFFFFF
##8F228C1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B8F
Deuteranopia (green-blind)
#425989
Tritanopia (blue-blind)
#943256
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f228c;
/* rgb */ color: rgb(143, 34, 140);
/* oklch */ color: oklch(47.1% 0.186 329.3);
Tailwind
colors: {
  custom: {
    50: '#b36aae',
    500: '#8f228c',
    950: '#000000',
  },
}
SCSS
$custom: #8f228c;
$custom-light: #b36aae;
$custom-dark: #000000;
JSON
{
  "hex": "#8f228c",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 301.651,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47065,
    "c": 0.18551,
    "h": 329.3
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#8F228C
secondary
#52BA55
accent
#E54843
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F228C

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

Preview Lab → · Contrast checker → · Palette generator →

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