#8B2298#8B2298

#8B2298 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.193 H 323.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#8B2298
RGBrgb(139, 34, 152)
HSLhsl(293, 63%, 36%)
HSVhsv(293, 78%, 60%)
CMYKcmyk(8.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(35.79, 57.84, -41.60)
CIE-LCHlch(35.79, 71.25, 324.27°)
OKLaboklab(47.2% 0.1544 -0.1163)
OKLCHoklch(47.2% 0.193 323)
XYZxyz(16.8864, 8.9010, 30.5283)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2298 #2F9822
analogous
#502298 #8B2298 #98226A
triadic
#8B2298 #988B22 #22988B
tetradic
#8B2298 #985022 #2F9822 #226A98
square
#8B2298 #985022 #2F9822 #226A98
split-complementary
#8B2298 #6A9822 #229850
monochromatic
#300C34 #5D1766 #8B2298 #B92DCA #CC5ADA

Accessibility & contrast

On white

7.55
#8B2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8B2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2298
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2298#FFFFFF#000000##FFFFFF
##8B22981.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#8D395C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2298;
/* rgb */ color: rgb(139, 34, 152);
/* oklch */ color: oklch(47.2% 0.193 323.0);
Tailwind
colors: {
  custom: {
    50: '#b16ab7',
    500: '#8b2298',
    950: '#000000',
  },
}
SCSS
$custom: #8b2298;
$custom-light: #b16ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2298",
  "rgb": {
    "r": 139,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 293.39,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47198,
    "c": 0.19328,
    "h": 323
  },
  "luminance": 0.089
}

Semantic roles & 50–950 ramp

primary
#8B2298
secondary
#63BE57
accent
#E64154
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2298

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

Preview Lab → · Contrast checker → · Palette generator →

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