#8F3797#8F3797

#8F3797 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 49.8% C 0.169 H 324.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8F3797
RGBrgb(143, 55, 151)
HSLhsl(295, 47%, 40%)
HSVhsv(295, 64%, 59%)
CMYKcmyk(5.3%, 63.6%, 0%, 40.8%)
CIE-LABlab(39.25, 50.44, -35.45)
CIE-LCHlch(39.25, 61.65, 324.91°)
OKLaboklab(49.79% 0.1369 -0.0984)
OKLCHoklch(49.79% 0.169 324.3)
XYZxyz(18.2793, 10.8074, 30.3954)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F3797 #3F9737
analogous
#5F3797 #8F3797 #97376F
triadic
#8F3797 #978F37 #37978F
tetradic
#8F3797 #975F37 #3F9737 #376F97
square
#8F3797 #975F37 #3F9737 #376F97
split-complementary
#8F3797 #6F9737 #37975F
monochromatic
#3A163D #65276A #8F3797 #B54DBE #C77ACF

Accessibility & contrast

On white

6.64
#8F3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8F3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F3797
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F3797#FFFFFF#000000##FFFFFF
##8F37971.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#476094
Tritanopia (blue-blind)
#924562
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f3797;
/* rgb */ color: rgb(143, 55, 151);
/* oklch */ color: oklch(49.8% 0.169 324.3);
Tailwind
colors: {
  custom: {
    50: '#b374b6',
    500: '#8f3797',
    950: '#000000',
  },
}
SCSS
$custom: #8f3797;
$custom-light: #b374b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f3797",
  "rgb": {
    "r": 143,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 295,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49789,
    "c": 0.16854,
    "h": 324.3
  },
  "luminance": 0.10806
}

Semantic roles & 50–950 ramp

primary
#8F3797
secondary
#78B872
accent
#D6525D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8F3797

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

Preview Lab → · Contrast checker → · Palette generator →

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