#8B198E#8B198E

#8B198E 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 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8B198E
RGBrgb(139, 25, 142)
HSLhsl(298, 70%, 33%)
HSVhsv(298, 82%, 56%)
CMYKcmyk(2.1%, 82.4%, 0%, 44.3%)
CIE-LABlab(34.27, 58.69, -37.92)
CIE-LCHlch(34.27, 69.87, 327.14°)
OKLaboklab(45.92% 0.1623 -0.1054)
OKLCHoklch(45.92% 0.194 327)
XYZxyz(15.8773, 8.1384, 26.3206)
Luminance0.0814 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B198E #1C8E19
analogous
#51198E #8B198E #8E1956
triadic
#8B198E #8E8B19 #198E8B
tetradic
#8B198E #8E5119 #1C8E19 #19568E
square
#8B198E #8E5119 #1C8E19 #19568E
split-complementary
#8B198E #568E19 #198E51
monochromatic
#250726 #58105A #8B198E #BE22C2 #DA43DE

Accessibility & contrast

On white

7.99
#8B198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8B198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B198E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B198E#FFFFFF#000000##FFFFFF
##8B198E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#8F2F55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b198e;
/* rgb */ color: rgb(139, 25, 142);
/* oklch */ color: oklch(45.9% 0.194 327.0);
Tailwind
colors: {
  custom: {
    50: '#b166af',
    500: '#8b198e',
    950: '#000000',
  },
}
SCSS
$custom: #8b198e;
$custom-light: #b166af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b198e",
  "rgb": {
    "r": 139,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 298.462,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45917,
    "c": 0.19356,
    "h": 327
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#8B198E
secondary
#47BF44
accent
#ED3B40
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B198E

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

Preview Lab → · Contrast checker → · Palette generator →

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