#8F2F87#8F2F87

#8F2F87 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.0% C 0.166 H 331.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8F2F87
RGBrgb(143, 47, 135)
HSLhsl(305, 51%, 37%)
HSVhsv(305, 67%, 56%)
CMYKcmyk(0%, 67.1%, 5.6%, 43.9%)
CIE-LABlab(37.16, 51.02, -28.98)
CIE-LCHlch(37.16, 58.67, 330.40°)
OKLaboklab(47.99% 0.1455 -0.0796)
OKLCHoklch(47.99% 0.166 331.3)
XYZxyz(16.7173, 9.6232, 23.8939)
Luminance0.0962 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2F87 #2F8F37
analogous
#672F8F #8F2F87 #8F2F57
triadic
#8F2F87 #878F2F #2F878F
tetradic
#8F2F87 #8F672F #2F8F37 #2F578F
square
#8F2F87 #8F672F #2F8F37 #2F578F
split-complementary
#8F2F87 #578F2F #2F8F67
monochromatic
#331130 #61205C #8F2F87 #BD3EB2 #CE6AC6

Accessibility & contrast

On white

7.18
#8F2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8F2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2F87
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2F87#FFFFFF#000000##FFFFFF
##8F2F871.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F8A
Deuteranopia (green-blind)
#4B5C85
Tritanopia (blue-blind)
#953957
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f2f87;
/* rgb */ color: rgb(143, 47, 135);
/* oklch */ color: oklch(48.0% 0.166 331.3);
Tailwind
colors: {
  custom: {
    50: '#b36faa',
    500: '#8f2f87',
    950: '#000000',
  },
}
SCSS
$custom: #8f2f87;
$custom-light: #b36faa;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2f87",
  "rgb": {
    "r": 143,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 305,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47991,
    "c": 0.16589,
    "h": 331.3
  },
  "luminance": 0.09622
}

Semantic roles & 50–950 ramp

primary
#8F2F87
secondary
#65B56B
accent
#DA594E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8F2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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