#8C248F#8C248F

#8C248F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.184 H 326.8°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8C248F
RGBrgb(140, 36, 143)
HSLhsl(298, 60%, 35%)
HSVhsv(298, 75%, 56%)
CMYKcmyk(2.1%, 74.8%, 0%, 43.9%)
CIE-LABlab(35.64, 55.80, -36.34)
CIE-LCHlch(35.64, 66.59, 326.93°)
OKLaboklab(46.94% 0.1542 -0.1009)
OKLCHoklch(46.94% 0.184 326.8)
XYZxyz(16.4037, 8.8215, 26.8200)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C248F #278F24
analogous
#57248F #8C248F #8F245C
triadic
#8C248F #8F8C24 #248F8C
tetradic
#8C248F #8F5724 #278F24 #245C8F
square
#8C248F #8F5724 #278F24 #245C8F
split-complementary
#8C248F #5C8F24 #248F57
monochromatic
#2C0B2D #5C185E #8C248F #BC30C0 #D258D5

Accessibility & contrast

On white

7.60
#8C248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8C248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C248F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C248F#FFFFFF#000000##FFFFFF
##8C248F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074B92
Deuteranopia (green-blind)
#3E588C
Tritanopia (blue-blind)
#903658
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8c248f;
/* rgb */ color: rgb(140, 36, 143);
/* oklch */ color: oklch(46.9% 0.184 326.8);
Tailwind
colors: {
  custom: {
    50: '#b16ab0',
    500: '#8c248f',
    950: '#000000',
  },
}
SCSS
$custom: #8c248f;
$custom-light: #b16ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c248f",
  "rgb": {
    "r": 140,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 298.318,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46943,
    "c": 0.18429,
    "h": 326.8
  },
  "luminance": 0.0882
}

Semantic roles & 50–950 ramp

primary
#8C248F
secondary
#58B955
accent
#E34549
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C248F

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

Preview Lab → · Contrast checker → · Palette generator →

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