#8F227F#8F227F

#8F227F is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.176 H 334.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8F227F
RGBrgb(143, 34, 127)
HSLhsl(309, 62%, 35%)
HSVhsv(309, 76%, 56%)
CMYKcmyk(0%, 76.2%, 11.2%, 43.9%)
CIE-LABlab(35.04, 54.53, -27.36)
CIE-LCHlch(35.04, 61.01, 333.36°)
OKLaboklab(46.33% 0.1589 -0.0748)
OKLCHoklch(46.33% 0.176 334.8)
XYZxyz(15.7307, 8.5174, 20.8901)
Luminance0.0852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F227F #228F32
analogous
#68228F #8F227F #8F2249
triadic
#8F227F #7F8F22 #227F8F
tetradic
#8F227F #8F6822 #228F32 #22498F
square
#8F227F #8F6822 #228F32 #22498F
split-complementary
#8F227F #498F22 #228F68
monochromatic
#2C0A27 #5E1653 #8F227F #C02EAB #D755C4

Accessibility & contrast

On white

7.77
#8F227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8F227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F227F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F227F#FFFFFF#000000##FFFFFF
##8F227F1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214882
Deuteranopia (green-blind)
#49587C
Tritanopia (blue-blind)
#962C4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f227f;
/* rgb */ color: rgb(143, 34, 127);
/* oklch */ color: oklch(46.3% 0.176 334.8);
Tailwind
colors: {
  custom: {
    50: '#b369a4',
    500: '#8f227f',
    950: '#000000',
  },
}
SCSS
$custom: #8f227f;
$custom-light: #b369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f227f",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 308.807,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46325,
    "c": 0.17566,
    "h": 334.8
  },
  "luminance": 0.08516
}

Semantic roles & 50–950 ramp

primary
#8F227F
secondary
#52BA62
accent
#E55B43
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F227F

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

Preview Lab → · Contrast checker → · Palette generator →

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