#8F2198#8F2198

#8F2198 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.196 H 324.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8F2198
RGBrgb(143, 33, 152)
HSLhsl(295, 64%, 36%)
HSVhsv(295, 78%, 60%)
CMYKcmyk(5.9%, 78.3%, 0%, 40.4%)
CIE-LABlab(36.36, 58.98, -40.66)
CIE-LCHlch(36.36, 71.63, 325.42°)
OKLaboklab(47.73% 0.1599 -0.1134)
OKLCHoklch(47.73% 0.196 324.7)
XYZxyz(17.5386, 9.1955, 30.5508)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2198 #2A9821
analogous
#542198 #8F2198 #982166
triadic
#8F2198 #988F21 #21988F
tetradic
#8F2198 #985421 #2A9821 #216698
square
#8F2198 #985421 #2A9821 #216698
split-complementary
#8F2198 #669821 #219854
monochromatic
#300B33 #601666 #8F2198 #BE2CCA #D159DB

Accessibility & contrast

On white

7.40
#8F2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8F2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2198
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2198#FFFFFF#000000##FFFFFF
##8F21981.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#92385C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8f2198;
/* rgb */ color: rgb(143, 33, 152);
/* oklch */ color: oklch(47.7% 0.196 324.7);
Tailwind
colors: {
  custom: {
    50: '#b46ab7',
    500: '#8f2198',
    950: '#000000',
  },
}
SCSS
$custom: #8f2198;
$custom-light: #b46ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2198",
  "rgb": {
    "r": 143,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 295.462,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47729,
    "c": 0.196,
    "h": 324.7
  },
  "luminance": 0.09194
}

Semantic roles & 50–950 ramp

primary
#8F2198
secondary
#5EBF56
accent
#E7404D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8F2198

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

Preview Lab → · Contrast checker → · Palette generator →

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