#8F2298#8F2298

#8F2298 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.195 H 324.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8F2298
RGBrgb(143, 34, 152)
HSLhsl(295, 63%, 36%)
HSVhsv(295, 78%, 60%)
CMYKcmyk(5.9%, 77.6%, 0%, 40.4%)
CIE-LABlab(36.46, 58.67, -40.49)
CIE-LCHlch(36.46, 71.28, 325.39°)
OKLaboklab(47.81% 0.159 -0.1129)
OKLCHoklch(47.81% 0.195 324.6)
XYZxyz(17.5668, 9.2518, 30.5602)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2298 #2B9822
analogous
#542298 #8F2298 #982266
triadic
#8F2298 #988F22 #22988F
tetradic
#8F2298 #985422 #2B9822 #226698
square
#8F2298 #985422 #2B9822 #226698
split-complementary
#8F2298 #669822 #229854
monochromatic
#310C34 #601766 #8F2298 #BE2DCA #D05ADA

Accessibility & contrast

On white

7.37
#8F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8F2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2298
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2298#FFFFFF#000000##FFFFFF
##8F22981.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8f2298;
/* rgb */ color: rgb(143, 34, 152);
/* oklch */ color: oklch(47.8% 0.195 324.6);
Tailwind
colors: {
  custom: {
    50: '#b46ab7',
    500: '#8f2298',
    950: '#000000',
  },
}
SCSS
$custom: #8f2298;
$custom-light: #b46ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2298",
  "rgb": {
    "r": 143,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 295.424,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47805,
    "c": 0.19503,
    "h": 324.6
  },
  "luminance": 0.09251
}

Semantic roles & 50–950 ramp

primary
#8F2298
secondary
#5FBE57
accent
#E6414E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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