#8B288E#8B288E

#8B288E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.178 H 326.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8B288E
RGBrgb(139, 40, 142)
HSLhsl(298, 56%, 36%)
HSVhsv(298, 72%, 56%)
CMYKcmyk(2.1%, 71.8%, 0%, 44.3%)
CIE-LABlab(35.91, 53.98, -35.31)
CIE-LCHlch(35.91, 64.50, 326.81°)
OKLaboklab(47.09% 0.1491 -0.0979)
OKLCHoklch(47.09% 0.178 326.7)
XYZxyz(16.2885, 8.9606, 26.4576)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B288E #2B8E28
analogous
#58288E #8B288E #8E285E
triadic
#8B288E #8E8B28 #288E8B
tetradic
#8B288E #8E5828 #2B8E28 #285E8E
square
#8B288E #8E5828 #2B8E28 #285E8E
split-complementary
#8B288E #5E8E28 #288E58
monochromatic
#2E0D2F #5C1B5E #8B288E #BA35BE #CE5FD2

Accessibility & contrast

On white

7.52
#8B288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8B288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B288E
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B288E#FFFFFF#000000##FFFFFF
##8B288E1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C91
Deuteranopia (green-blind)
#40598B
Tritanopia (blue-blind)
#8F3858
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b288e;
/* rgb */ color: rgb(139, 40, 142);
/* oklch */ color: oklch(47.1% 0.178 326.7);
Tailwind
colors: {
  custom: {
    50: '#b06caf',
    500: '#8b288e',
    950: '#000000',
  },
}
SCSS
$custom: #8b288e;
$custom-light: #b06caf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b288e",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 298.235,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47085,
    "c": 0.1784,
    "h": 326.7
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#8B288E
secondary
#5DB75B
accent
#DF484D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B288E

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

Preview Lab → · Contrast checker → · Palette generator →

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