#8F237F#8F237F

#8F237F is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.175 H 334.8°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8F237F
RGBrgb(143, 35, 127)
HSLhsl(309, 61%, 35%)
HSVhsv(309, 76%, 56%)
CMYKcmyk(0%, 75.5%, 11.2%, 43.9%)
CIE-LABlab(35.15, 54.20, -27.17)
CIE-LCHlch(35.15, 60.63, 333.37°)
OKLaboklab(46.41% 0.158 -0.0743)
OKLCHoklch(46.41% 0.175 334.8)
XYZxyz(15.7597, 8.5754, 20.8998)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F237F #238F33
analogous
#69238F #8F237F #8F2349
triadic
#8F237F #7F8F23 #237F8F
tetradic
#8F237F #8F6923 #238F33 #23498F
square
#8F237F #8F6923 #238F33 #23498F
split-complementary
#8F237F #498F23 #238F69
monochromatic
#2D0B28 #5E1753 #8F237F #C02FAB #D657C3

Accessibility & contrast

On white

7.74
#8F237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8F237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F237F
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F237F#FFFFFF#000000##FFFFFF
##8F237F1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224982
Deuteranopia (green-blind)
#49587C
Tritanopia (blue-blind)
#962C4F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f237f;
/* rgb */ color: rgb(143, 35, 127);
/* oklch */ color: oklch(46.4% 0.175 334.8);
Tailwind
colors: {
  custom: {
    50: '#b36aa4',
    500: '#8f237f',
    950: '#000000',
  },
}
SCSS
$custom: #8f237f;
$custom-light: #b36aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f237f",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 308.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46408,
    "c": 0.17456,
    "h": 334.8
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#8F237F
secondary
#54BA63
accent
#E45C44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F237F

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

Preview Lab → · Contrast checker → · Palette generator →

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