#8C2398#8C2398

#8C2398 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.193 H 323.4°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8C2398
RGBrgb(140, 35, 152)
HSLhsl(294, 63%, 37%)
HSVhsv(294, 77%, 60%)
CMYKcmyk(7.9%, 77%, 0%, 40.4%)
CIE-LABlab(36.07, 57.72, -41.15)
CIE-LCHlch(36.07, 70.89, 324.52°)
OKLaboklab(47.43% 0.1547 -0.1149)
OKLCHoklch(47.43% 0.193 323.4)
XYZxyz(17.0832, 9.0456, 30.5458)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2398 #2F9823
analogous
#522398 #8C2398 #98236A
triadic
#8C2398 #988C23 #23988C
tetradic
#8C2398 #985223 #2F9823 #236A98
square
#8C2398 #985223 #2F9823 #236A98
split-complementary
#8C2398 #6A9823 #239852
monochromatic
#300C35 #5E1866 #8C2398 #BA2ECA #CD5CD9

Accessibility & contrast

On white

7.48
#8C2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8C2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2398
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2398#FFFFFF#000000##FFFFFF
##8C23981.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#8E395D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8c2398;
/* rgb */ color: rgb(140, 35, 152);
/* oklch */ color: oklch(47.4% 0.193 323.4);
Tailwind
colors: {
  custom: {
    50: '#b16ab7',
    500: '#8c2398',
    950: '#000000',
  },
}
SCSS
$custom: #8c2398;
$custom-light: #b16ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2398",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 293.846,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47428,
    "c": 0.1927,
    "h": 323.4
  },
  "luminance": 0.09045
}

Semantic roles & 50–950 ramp

primary
#8C2398
secondary
#63BE59
accent
#E64253
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8C2398

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

Preview Lab → · Contrast checker → · Palette generator →

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