#8F3198#8F3198

#8F3198 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.178 H 324.1°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8F3198
RGBrgb(143, 49, 152)
HSLhsl(295, 51%, 39%)
HSVhsv(295, 68%, 60%)
CMYKcmyk(5.9%, 67.8%, 0%, 40.4%)
CIE-LABlab(38.38, 53.22, -37.43)
CIE-LCHlch(38.38, 65.06, 324.88°)
OKLaboklab(49.18% 0.144 -0.1041)
OKLCHoklch(49.18% 0.178 324.1)
XYZxyz(18.0930, 10.3043, 30.7356)
Luminance0.1030 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F3198 #3A9831
analogous
#5C3198 #8F3198 #98316E
triadic
#8F3198 #988F31 #31988F
tetradic
#8F3198 #985C31 #3A9831 #316E98
square
#8F3198 #985C31 #3A9831 #316E98
split-complementary
#8F3198 #6E9831 #31985C
monochromatic
#38133B #63226A #8F3198 #B744C3 #C972D2

Accessibility & contrast

On white

6.86
#8F3198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8F3198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F3198
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F3198#FFFFFF#000000##FFFFFF
##8F31981.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19539B
Deuteranopia (green-blind)
#435E95
Tritanopia (blue-blind)
#924160
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8f3198;
/* rgb */ color: rgb(143, 49, 152);
/* oklch */ color: oklch(49.2% 0.178 324.1);
Tailwind
colors: {
  custom: {
    50: '#b371b7',
    500: '#8f3198',
    950: '#000000',
  },
}
SCSS
$custom: #8f3198;
$custom-light: #b371b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f3198",
  "rgb": {
    "r": 143,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 294.757,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49178,
    "c": 0.17769,
    "h": 324.1
  },
  "luminance": 0.10303
}

Semantic roles & 50–950 ramp

primary
#8F3198
secondary
#72B96B
accent
#DB4D59
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8F3198

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

Preview Lab → · Contrast checker → · Palette generator →

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