#8A197F#8A197F

#8A197F is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.182 H 332.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#8A197F
RGBrgb(138, 25, 127)
HSLhsl(306, 69%, 32%)
HSVhsv(306, 82%, 54%)
CMYKcmyk(0%, 81.9%, 8%, 45.9%)
CIE-LABlab(33.20, 56.05, -30.30)
CIE-LCHlch(33.20, 63.72, 331.60°)
OKLaboklab(44.84% 0.1616 -0.0834)
OKLCHoklch(44.84% 0.182 332.7)
XYZxyz(14.6597, 7.6321, 20.7756)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A197F #198A24
analogous
#5D198A #8A197F #8A1946
triadic
#8A197F #7F8A19 #197F8A
tetradic
#8A197F #8A5D19 #198A24 #19468A
square
#8A197F #8A5D19 #198A24 #19468A
split-complementary
#8A197F #468A19 #198A5D
monochromatic
#220620 #56104F #8A197F #BE22AF #DD41CD

Accessibility & contrast

On white

8.31
#8A197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A197F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A197F#FFFFFF#000000##FFFFFF
##8A197F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114482
Deuteranopia (green-blind)
#41547C
Tritanopia (blue-blind)
#90274C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a197f;
/* rgb */ color: rgb(138, 25, 127);
/* oklch */ color: oklch(44.8% 0.182 332.7);
Tailwind
colors: {
  custom: {
    50: '#b065a4',
    500: '#8a197f',
    950: '#000000',
  },
}
SCSS
$custom: #8a197f;
$custom-light: #b065a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a197f",
  "rgb": {
    "r": 138,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 305.841,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44841,
    "c": 0.18185,
    "h": 332.7
  },
  "luminance": 0.07631
}

Semantic roles & 50–950 ramp

primary
#8A197F
secondary
#42BD4E
accent
#EC4D3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A197F

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

Preview Lab → · Contrast checker → · Palette generator →

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