#8A198C#8A198C

#8A198C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.6% C 0.192 H 327.4°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8A198C
RGBrgb(138, 25, 140)
HSLhsl(299, 70%, 32%)
HSVhsv(299, 82%, 55%)
CMYKcmyk(1.4%, 82.1%, 0%, 45.1%)
CIE-LABlab(33.97, 58.15, -37.17)
CIE-LCHlch(33.97, 69.02, 327.41°)
OKLaboklab(45.63% 0.1613 -0.1033)
OKLCHoklch(45.63% 0.192 327.4)
XYZxyz(15.5623, 7.9931, 25.5290)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A198C #1B8C19
analogous
#51198C #8A198C #8C1954
triadic
#8A198C #8C8A19 #198C8A
tetradic
#8A198C #8C5119 #1B8C19 #19548C
square
#8A198C #8C5119 #1B8C19 #19548C
split-complementary
#8A198C #548C19 #198C51
monochromatic
#240624 #571058 #8A198C #BD22C0 #DB42DD

Accessibility & contrast

On white

8.08
#8A198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A198C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A198C#FFFFFF#000000##FFFFFF
##8A198C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3A5589
Tritanopia (blue-blind)
#8E2E54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a198c;
/* rgb */ color: rgb(138, 25, 140);
/* oklch */ color: oklch(45.6% 0.192 327.4);
Tailwind
colors: {
  custom: {
    50: '#b066ae',
    500: '#8a198c',
    950: '#000000',
  },
}
SCSS
$custom: #8a198c;
$custom-light: #b066ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a198c",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 298.957,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4563,
    "c": 0.19158,
    "h": 327.4
  },
  "luminance": 0.07992
}

Semantic roles & 50–950 ramp

primary
#8A198C
secondary
#45BE43
accent
#ED3B3E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A198C

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

Preview Lab → · Contrast checker → · Palette generator →

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