#8F237E#8F237E

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

Color values

HEX#8F237E
RGBrgb(143, 35, 126)
HSLhsl(309, 61%, 35%)
HSVhsv(309, 76%, 56%)
CMYKcmyk(0%, 75.5%, 11.9%, 43.9%)
CIE-LABlab(35.10, 54.04, -26.63)
CIE-LCHlch(35.10, 60.25, 333.77°)
OKLaboklab(46.35% 0.1579 -0.0727)
OKLCHoklch(46.35% 0.174 335.3)
XYZxyz(15.6948, 8.5495, 20.5582)
Luminance0.0855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F237E #238F34
analogous
#6A238F #8F237E #8F2348
triadic
#8F237E #7E8F23 #237E8F
tetradic
#8F237E #8F6A23 #238F34 #23488F
square
#8F237E #8F6A23 #238F34 #23488F
split-complementary
#8F237E #488F23 #238F6A
monochromatic
#2D0B27 #5E1753 #8F237E #C02FA9 #D657C2

Accessibility & contrast

On white

7.75
#8F237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F237E
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F237E#FFFFFF#000000##FFFFFF
##8F237E1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234880
Deuteranopia (green-blind)
#4A587B
Tritanopia (blue-blind)
#962C4E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8f237e;
/* rgb */ color: rgb(143, 35, 126);
/* oklch */ color: oklch(46.4% 0.174 335.3);
Tailwind
colors: {
  custom: {
    50: '#b36aa3',
    500: '#8f237e',
    950: '#000000',
  },
}
SCSS
$custom: #8f237e;
$custom-light: #b36aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f237e",
  "rgb": {
    "r": 143,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 309.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46354,
    "c": 0.17384,
    "h": 335.3
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#8F237E
secondary
#54BA64
accent
#E45D44
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8F237E

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

Preview Lab → · Contrast checker → · Palette generator →

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