#8F227D#8F227D

#8F227D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.174 H 335.7°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#8F227D
RGBrgb(143, 34, 125)
HSLhsl(310, 62%, 35%)
HSVhsv(310, 76%, 56%)
CMYKcmyk(0%, 76.2%, 12.6%, 43.9%)
CIE-LABlab(34.93, 54.22, -26.27)
CIE-LCHlch(34.93, 60.25, 334.15°)
OKLaboklab(46.22% 0.1588 -0.0717)
OKLCHoklch(46.22% 0.174 335.7)
XYZxyz(15.6016, 8.4658, 20.2104)
Luminance0.0846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F227D #228F34
analogous
#6A228F #8F227D #8F2247
triadic
#8F227D #7D8F22 #227D8F
tetradic
#8F227D #8F6A22 #228F34 #22478F
square
#8F227D #8F6A22 #228F34 #22478F
split-complementary
#8F227D #478F22 #228F6A
monochromatic
#2C0A27 #5E1652 #8F227D #C02EA8 #D755C1

Accessibility & contrast

On white

7.80
#8F227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8F227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F227D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F227D#FFFFFF#000000##FFFFFF
##8F227D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#4A587A
Tritanopia (blue-blind)
#962A4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8f227d;
/* rgb */ color: rgb(143, 34, 125);
/* oklch */ color: oklch(46.2% 0.174 335.7);
Tailwind
colors: {
  custom: {
    50: '#b369a3',
    500: '#8f227d',
    950: '#000000',
  },
}
SCSS
$custom: #8f227d;
$custom-light: #b369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f227d",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 309.908,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46217,
    "c": 0.17421,
    "h": 335.7
  },
  "luminance": 0.08464
}

Semantic roles & 50–950 ramp

primary
#8F227D
secondary
#52BA64
accent
#E55E43
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F227D

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

Preview Lab → · Contrast checker → · Palette generator →

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