#8A198F#8A198F

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

Color values

HEX#8A198F
RGBrgb(138, 25, 143)
HSLhsl(297, 70%, 33%)
HSVhsv(297, 83%, 56%)
CMYKcmyk(3.5%, 82.5%, 0%, 43.9%)
CIE-LABlab(34.15, 58.66, -38.73)
CIE-LCHlch(34.15, 70.29, 326.57°)
OKLaboklab(45.82% 0.1611 -0.1078)
OKLCHoklch(45.82% 0.194 326.2)
XYZxyz(15.7865, 8.0828, 26.7099)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A198F #1E8F19
analogous
#4F198F #8A198F #8F1959
triadic
#8A198F #8F8A19 #198F8A
tetradic
#8A198F #8F4F19 #1E8F19 #19598F
square
#8A198F #8F4F19 #1E8F19 #19598F
split-complementary
#8A198F #598F19 #198F4F
monochromatic
#250727 #58105B #8A198F #BC22C3 #D844DE

Accessibility & contrast

On white

8.03
#8A198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A198F
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A198F#FFFFFF#000000##FFFFFF
##8A198F1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#8E3055
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a198f;
/* rgb */ color: rgb(138, 25, 143);
/* oklch */ color: oklch(45.8% 0.194 326.2);
Tailwind
colors: {
  custom: {
    50: '#b066b0',
    500: '#8a198f',
    950: '#000000',
  },
}
SCSS
$custom: #8a198f;
$custom-light: #b066b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a198f",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 297.458,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45822,
    "c": 0.19389,
    "h": 326.2
  },
  "luminance": 0.08082
}

Semantic roles & 50–950 ramp

primary
#8A198F
secondary
#4ABF44
accent
#ED3B42
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A198F

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

Preview Lab → · Contrast checker → · Palette generator →

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