#8B128F#8B128F

#8B128F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.199 H 326.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8B128F
RGBrgb(139, 18, 143)
HSLhsl(298, 78%, 32%)
HSVhsv(298, 87%, 56%)
CMYKcmyk(2.8%, 87.4%, 0%, 43.9%)
CIE-LABlab(33.79, 60.45, -39.30)
CIE-LCHlch(33.79, 72.11, 326.97°)
OKLaboklab(45.6% 0.1667 -0.1095)
OKLCHoklch(45.6% 0.199 326.7)
XYZxyz(15.8214, 7.9059, 26.6740)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B128F #168F12
analogous
#4D128F #8B128F #8F1255
triadic
#8B128F #8F8B12 #128F8B
tetradic
#8B128F #8F4D12 #168F12 #12558F
square
#8B128F #8F4D12 #168F12 #12558F
split-complementary
#8B128F #558F12 #128F4D
monochromatic
#210422 #560B59 #8B128F #C019C5 #E036E6

Accessibility & contrast

On white

8.14
#8B128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8B128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B128F
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B128F#FFFFFF#000000##FFFFFF
##8B128F1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#36548C
Tritanopia (blue-blind)
#8F2D54
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b128f;
/* rgb */ color: rgb(139, 18, 143);
/* oklch */ color: oklch(45.6% 0.199 326.7);
Tailwind
colors: {
  custom: {
    50: '#b164b0',
    500: '#8b128f',
    950: '#000000',
  },
}
SCSS
$custom: #8b128f;
$custom-light: #b164b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b128f",
  "rgb": {
    "r": 139,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 298.08,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45595,
    "c": 0.19943,
    "h": 326.7
  },
  "luminance": 0.07905
}

Semantic roles & 50–950 ramp

primary
#8B128F
secondary
#3EC33A
accent
#F4343A
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B128F

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

Preview Lab → · Contrast checker → · Palette generator →

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