#8F2297#8F2297

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

Color values

HEX#8F2297
RGBrgb(143, 34, 151)
HSLhsl(296, 63%, 36%)
HSVhsv(296, 77%, 59%)
CMYKcmyk(5.3%, 77.5%, 0%, 40.8%)
CIE-LABlab(36.40, 58.49, -39.98)
CIE-LCHlch(36.40, 70.85, 325.65°)
OKLaboklab(47.74% 0.1591 -0.1114)
OKLCHoklch(47.74% 0.194 325)
XYZxyz(17.4852, 9.2192, 30.1307)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2297 #2A9722
analogous
#552297 #8F2297 #972265
triadic
#8F2297 #978F22 #22978F
tetradic
#8F2297 #975522 #2A9722 #226597
square
#8F2297 #975522 #2A9722 #226597
split-complementary
#8F2297 #659722 #229755
monochromatic
#300C33 #601765 #8F2297 #BE2DC9 #D15ADA

Accessibility & contrast

On white

7.39
#8F2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8F2297
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2297#FFFFFF#000000##FFFFFF
##8F22971.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#3B5A94
Tritanopia (blue-blind)
#92385C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8f2297;
/* rgb */ color: rgb(143, 34, 151);
/* oklch */ color: oklch(47.7% 0.194 325.0);
Tailwind
colors: {
  custom: {
    50: '#b36ab6',
    500: '#8f2297',
    950: '#000000',
  },
}
SCSS
$custom: #8f2297;
$custom-light: #b36ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2297",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 295.897,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47742,
    "c": 0.19422,
    "h": 325
  },
  "luminance": 0.09218
}

Semantic roles & 50–950 ramp

primary
#8F2297
secondary
#5EBE57
accent
#E6424D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8F2297

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

Preview Lab → · Contrast checker → · Palette generator →

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