#8F2797#8F2797

#8F2797 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.189 H 324.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8F2797
RGBrgb(143, 39, 151)
HSLhsl(296, 59%, 37%)
HSVhsv(296, 74%, 59%)
CMYKcmyk(5.3%, 74.2%, 0%, 40.8%)
CIE-LABlab(36.98, 56.84, -39.06)
CIE-LCHlch(36.98, 68.97, 325.50°)
OKLaboklab(48.15% 0.1545 -0.1088)
OKLCHoklch(48.15% 0.189 324.9)
XYZxyz(17.6387, 9.5262, 30.1818)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2797 #2F9727
analogous
#572797 #8F2797 #972767
triadic
#8F2797 #978F27 #27978F
tetradic
#8F2797 #975727 #2F9727 #276797
square
#8F2797 #975727 #2F9727 #276797
split-complementary
#8F2797 #679727 #279757
monochromatic
#330E36 #611A66 #8F2797 #BD34C8 #CE62D6

Accessibility & contrast

On white

7.23
#8F2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8F2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2797
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2797#FFFFFF#000000##FFFFFF
##8F27971.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#3E5B94
Tritanopia (blue-blind)
#923B5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f2797;
/* rgb */ color: rgb(143, 39, 151);
/* oklch */ color: oklch(48.2% 0.189 324.9);
Tailwind
colors: {
  custom: {
    50: '#b36cb6',
    500: '#8f2797',
    950: '#000000',
  },
}
SCSS
$custom: #8f2797;
$custom-light: #b36cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2797",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 295.714,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48151,
    "c": 0.18897,
    "h": 324.9
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

primary
#8F2797
secondary
#65BC5E
accent
#E24651
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8F2797

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

Preview Lab → · Contrast checker → · Palette generator →

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