#8A198D#8A198D

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

Color values

HEX#8A198D
RGBrgb(138, 25, 141)
HSLhsl(298, 70%, 33%)
HSVhsv(298, 82%, 55%)
CMYKcmyk(2.1%, 82.3%, 0%, 44.7%)
CIE-LABlab(34.03, 58.32, -37.69)
CIE-LCHlch(34.03, 69.44, 327.13°)
OKLaboklab(45.69% 0.1613 -0.1048)
OKLCHoklch(45.69% 0.192 327)
XYZxyz(15.6363, 8.0228, 25.9191)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A198D #1C8D19
analogous
#50198D #8A198D #8D1956
triadic
#8A198D #8D8A19 #198D8A
tetradic
#8A198D #8D5019 #1C8D19 #19568D
square
#8A198D #8D5019 #1C8D19 #19568D
split-complementary
#8A198D #568D19 #198D50
monochromatic
#240725 #571059 #8A198D #BD22C1 #DA43DE

Accessibility & contrast

On white

8.06
#8A198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A198D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A198D#FFFFFF#000000##FFFFFF
##8A198D1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#39558A
Tritanopia (blue-blind)
#8E2F54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a198d;
/* rgb */ color: rgb(138, 25, 141);
/* oklch */ color: oklch(45.7% 0.192 327.0);
Tailwind
colors: {
  custom: {
    50: '#b066af',
    500: '#8a198d',
    950: '#000000',
  },
}
SCSS
$custom: #8a198d;
$custom-light: #b066af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a198d",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 298.448,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45694,
    "c": 0.19235,
    "h": 327
  },
  "luminance": 0.08022
}

Semantic roles & 50–950 ramp

primary
#8A198D
secondary
#46BF43
accent
#ED3B40
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A198D

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

Preview Lab → · Contrast checker → · Palette generator →

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