#8A188D#8A188D

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

Color values

HEX#8A188D
RGBrgb(138, 24, 141)
HSLhsl(298, 71%, 32%)
HSVhsv(298, 83%, 55%)
CMYKcmyk(2.1%, 83%, 0%, 44.7%)
CIE-LABlab(33.94, 58.58, -37.83)
CIE-LCHlch(33.94, 69.73, 327.14°)
OKLaboklab(45.63% 0.162 -0.1052)
OKLCHoklch(45.63% 0.193 327)
XYZxyz(15.6153, 7.9808, 25.9121)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A188D #1B8D18
analogous
#50188D #8A188D #8D1855
triadic
#8A188D #8D8A18 #188D8A
tetradic
#8A188D #8D5018 #1B8D18 #18558D
square
#8A188D #8D5018 #1B8D18 #18558D
split-complementary
#8A188D #558D18 #188D50
monochromatic
#240624 #570F59 #8A188D #BD21C1 #DB41DF

Accessibility & contrast

On white

8.09
#8A188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A188D
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A188D#FFFFFF#000000##FFFFFF
##8A188D1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.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: #8a188d;
/* rgb */ color: rgb(138, 24, 141);
/* oklch */ color: oklch(45.6% 0.193 327.0);
Tailwind
colors: {
  custom: {
    50: '#b066af',
    500: '#8a188d',
    950: '#000000',
  },
}
SCSS
$custom: #8a188d;
$custom-light: #b066af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a188d",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 298.462,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.19316,
    "h": 327
  },
  "luminance": 0.0798
}

Semantic roles & 50–950 ramp

primary
#8A188D
secondary
#45BF42
accent
#EE3A3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A188D

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

Preview Lab → · Contrast checker → · Palette generator →

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