#8A198B#8A198B

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

Color values

HEX#8A198B
RGBrgb(138, 25, 139)
HSLhsl(299, 70%, 32%)
HSVhsv(299, 82%, 55%)
CMYKcmyk(0.7%, 82%, 0%, 45.5%)
CIE-LABlab(33.91, 57.99, -36.65)
CIE-LCHlch(33.91, 68.60, 327.70°)
OKLaboklab(45.57% 0.1614 -0.1018)
OKLCHoklch(45.57% 0.191 327.8)
XYZxyz(15.4889, 7.9638, 25.1425)
Luminance0.0796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A198B #1A8B19
analogous
#51198B #8A198B #8B1953
triadic
#8A198B #8B8A19 #198B8A
tetradic
#8A198B #8B5119 #1A8B19 #19538B
square
#8A198B #8B5119 #1A8B19 #19538B
split-complementary
#8A198B #538B19 #198B51
monochromatic
#230623 #571057 #8A198B #BD22BF #DC41DD

Accessibility & contrast

On white

8.10
#8A198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A198B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A198B#FFFFFF#000000##FFFFFF
##8A198B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#3A5588
Tritanopia (blue-blind)
#8E2E53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a198b;
/* rgb */ color: rgb(138, 25, 139);
/* oklch */ color: oklch(45.6% 0.191 327.8);
Tailwind
colors: {
  custom: {
    50: '#b066ad',
    500: '#8a198b',
    950: '#000000',
  },
}
SCSS
$custom: #8a198b;
$custom-light: #b066ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a198b",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 299.474,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45567,
    "c": 0.19082,
    "h": 327.8
  },
  "luminance": 0.07963
}

Semantic roles & 50–950 ramp

primary
#8A198B
secondary
#43BE42
accent
#EC3B3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A198B

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

Preview Lab → · Contrast checker → · Palette generator →

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