#8F3397#8F3397

#8F3397 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.3% C 0.174 H 324.5°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8F3397
RGBrgb(143, 51, 151)
HSLhsl(295, 50%, 40%)
HSVhsv(295, 66%, 59%)
CMYKcmyk(5.3%, 66.2%, 0%, 40.8%)
CIE-LABlab(38.63, 52.19, -36.44)
CIE-LCHlch(38.63, 63.66, 325.08°)
OKLaboklab(49.33% 0.1417 -0.1012)
OKLCHoklch(49.33% 0.174 324.5)
XYZxyz(18.0970, 10.4427, 30.3346)
Luminance0.1044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F3397 #3B9733
analogous
#5D3397 #8F3397 #97336D
triadic
#8F3397 #978F33 #33978F
tetradic
#8F3397 #975D33 #3B9733 #336D97
square
#8F3397 #975D33 #3B9733 #336D97
split-complementary
#8F3397 #6D9733 #33975D
monochromatic
#38143C #642469 #8F3397 #B747C1 #C974D0

Accessibility & contrast

On white

6.80
#8F3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8F3397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F3397
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F3397#FFFFFF#000000##FFFFFF
##8F33971.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#455F94
Tritanopia (blue-blind)
#924260
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8f3397;
/* rgb */ color: rgb(143, 51, 151);
/* oklch */ color: oklch(49.3% 0.174 324.5);
Tailwind
colors: {
  custom: {
    50: '#b372b6',
    500: '#8f3397',
    950: '#000000',
  },
}
SCSS
$custom: #8f3397;
$custom-light: #b372b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f3397",
  "rgb": {
    "r": 143,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 295.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49334,
    "c": 0.17413,
    "h": 324.5
  },
  "luminance": 0.10442
}

Semantic roles & 50–950 ramp

primary
#8F3397
secondary
#73B86D
accent
#D94F5A
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8F3397

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

Preview Lab → · Contrast checker → · Palette generator →

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