#8A198A#8A198A

#8A198A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.190 H 328.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#8A198A
RGBrgb(138, 25, 138)
HSLhsl(300, 69%, 32%)
HSVhsv(300, 82%, 54%)
CMYKcmyk(0%, 81.9%, 0%, 45.9%)
CIE-LABlab(33.85, 57.82, -36.13)
CIE-LCHlch(33.85, 68.18, 328.00°)
OKLaboklab(45.5% 0.1615 -0.1003)
OKLCHoklch(45.5% 0.19 328.2)
XYZxyz(15.4161, 7.9347, 24.7594)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A198A #198A19
analogous
#52198A #8A198A #8A1952
triadic
#8A198A #8A8A19 #198A8A
tetradic
#8A198A #8A5219 #198A19 #19528A
square
#8A198A #8A5219 #198A19 #19528A
split-complementary
#8A198A #528A19 #198A52
monochromatic
#220622 #561056 #8A198A #BE22BE #DD41DD

Accessibility & contrast

On white

8.12
#8A198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A198A
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A198A#FFFFFF#000000##FFFFFF
##8A198A1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#3B5587
Tritanopia (blue-blind)
#8F2D52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a198a;
/* rgb */ color: rgb(138, 25, 138);
/* oklch */ color: oklch(45.5% 0.190 328.2);
Tailwind
colors: {
  custom: {
    50: '#b066ad',
    500: '#8a198a',
    950: '#000000',
  },
}
SCSS
$custom: #8a198a;
$custom-light: #b066ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a198a",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45504,
    "c": 0.19005,
    "h": 328.2
  },
  "luminance": 0.07934
}

Semantic roles & 50–950 ramp

primary
#8A198A
secondary
#42BD42
accent
#EC3C3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A198A

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

Preview Lab → · Contrast checker → · Palette generator →

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