#8B188E#8B188E

#8B188E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.194 H 327.0°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8B188E
RGBrgb(139, 24, 142)
HSLhsl(298, 71%, 33%)
HSVhsv(298, 83%, 56%)
CMYKcmyk(2.1%, 83.1%, 0%, 44.3%)
CIE-LABlab(34.18, 58.94, -38.05)
CIE-LCHlch(34.18, 70.16, 327.15°)
OKLaboklab(45.86% 0.163 -0.1058)
OKLCHoklch(45.86% 0.194 327)
XYZxyz(15.8563, 8.0964, 26.3136)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B188E #1B8E18
analogous
#50188E #8B188E #8E1856
triadic
#8B188E #8E8B18 #188E8B
tetradic
#8B188E #8E5018 #1B8E18 #18568E
square
#8B188E #8E5018 #1B8E18 #18568E
split-complementary
#8B188E #568E18 #188E50
monochromatic
#250625 #580F5A #8B188E #BE21C2 #DB41DF

Accessibility & contrast

On white

8.02
#8B188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8B188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B188E
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B188E#FFFFFF#000000##FFFFFF
##8B188E1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#8F2F54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b188e;
/* rgb */ color: rgb(139, 24, 142);
/* oklch */ color: oklch(45.9% 0.194 327.0);
Tailwind
colors: {
  custom: {
    50: '#b166af',
    500: '#8b188e',
    950: '#000000',
  },
}
SCSS
$custom: #8b188e;
$custom-light: #b166af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b188e",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 298.475,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45855,
    "c": 0.19436,
    "h": 327
  },
  "luminance": 0.08095
}

Semantic roles & 50–950 ramp

primary
#8B188E
secondary
#45C042
accent
#EE3A3F
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B188E

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

Preview Lab → · Contrast checker → · Palette generator →

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