#8C128B#8C128B

#8C128B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.197 H 328.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8C128B
RGBrgb(140, 18, 139)
HSLhsl(300, 77%, 31%)
HSVhsv(300, 87%, 55%)
CMYKcmyk(0%, 87.1%, 0.7%, 45.1%)
CIE-LABlab(33.72, 59.99, -36.93)
CIE-LCHlch(33.72, 70.45, 328.38°)
OKLaboklab(45.5% 0.1681 -0.1025)
OKLCHoklch(45.5% 0.197 328.6)
XYZxyz(15.6916, 7.8734, 25.1144)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C128B #128C13
analogous
#50128C #8C128B #8C124E
triadic
#8C128B #8B8C12 #128B8C
tetradic
#8C128B #8C5012 #128C13 #124E8C
square
#8C128B #8C5012 #128C13 #124E8C
split-complementary
#8C128B #4E8C12 #128C50
monochromatic
#20041F #560B55 #8C128B #C219C1 #E534E3

Accessibility & contrast

On white

8.16
#8C128B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8C128B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C128B
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C128B#FFFFFF#000000##FFFFFF
##8C128B1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#3A5588
Tritanopia (blue-blind)
#912A52
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8c128b;
/* rgb */ color: rgb(140, 18, 139);
/* oklch */ color: oklch(45.5% 0.197 328.6);
Tailwind
colors: {
  custom: {
    50: '#b264ad',
    500: '#8c128b',
    950: '#000000',
  },
}
SCSS
$custom: #8c128b;
$custom-light: #b264ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8c128b",
  "rgb": {
    "r": 140,
    "g": 18,
    "b": 139
  },
  "hsl": {
    "h": 300.492,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.45501,
    "c": 0.19689,
    "h": 328.6
  },
  "luminance": 0.07872
}

Semantic roles & 50–950 ramp

primary
#8C128B
secondary
#39C03A
accent
#F43634
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8C128B

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

Preview Lab → · Contrast checker → · Palette generator →

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