#8F228E#8F228E

#8F228E is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.187 H 328.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#8F228E
RGBrgb(143, 34, 142)
HSLhsl(301, 62%, 35%)
HSVhsv(301, 76%, 56%)
CMYKcmyk(0%, 76.2%, 0.7%, 43.9%)
CIE-LABlab(35.86, 56.95, -35.33)
CIE-LCHlch(35.86, 67.02, 328.18°)
OKLaboklab(47.19% 0.1594 -0.0979)
OKLCHoklch(47.19% 0.187 328.4)
XYZxyz(16.7820, 8.9379, 26.4272)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F228E #228F23
analogous
#59228F #8F228E #8F2258
triadic
#8F228E #8E8F22 #228E8F
tetradic
#8F228E #8F5922 #228F23 #22588F
square
#8F228E #8F5922 #228F23 #22588F
split-complementary
#8F228E #588F22 #228F59
monochromatic
#2C0A2C #5E165D #8F228E #C02EBF #D755D5

Accessibility & contrast

On white

7.53
#8F228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8F228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F228E
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F228E#FFFFFF#000000##FFFFFF
##8F228E1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#41598B
Tritanopia (blue-blind)
#943357
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8f228e;
/* rgb */ color: rgb(143, 34, 142);
/* oklch */ color: oklch(47.2% 0.187 328.4);
Tailwind
colors: {
  custom: {
    50: '#b36aaf',
    500: '#8f228e',
    950: '#000000',
  },
}
SCSS
$custom: #8f228e;
$custom-light: #b36aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f228e",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 300.55,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47185,
    "c": 0.18706,
    "h": 328.4
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#8F228E
secondary
#52BA53
accent
#E54543
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8F228E

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

Preview Lab → · Contrast checker → · Palette generator →

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