#8A188A#8A188A

#8A188A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.191 H 328.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8A188A
RGBrgb(138, 24, 138)
HSLhsl(300, 70%, 32%)
HSVhsv(300, 83%, 54%)
CMYKcmyk(0%, 82.6%, 0%, 45.9%)
CIE-LABlab(33.76, 58.08, -36.27)
CIE-LCHlch(33.76, 68.47, 328.01°)
OKLaboklab(45.44% 0.1622 -0.1007)
OKLCHoklch(45.44% 0.191 328.2)
XYZxyz(15.3951, 7.8927, 24.7524)
Luminance0.0789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A188A #188A18
analogous
#51188A #8A188A #8A1851
triadic
#8A188A #8A8A18 #188A8A
tetradic
#8A188A #8A5118 #188A18 #18518A
square
#8A188A #8A5118 #188A18 #18518A
split-complementary
#8A188A #518A18 #188A51
monochromatic
#220622 #560F56 #8A188A #BE21BE #DE3FDE

Accessibility & contrast

On white

8.14
#8A188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A188A
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A188A#FFFFFF#000000##FFFFFF
##8A188A1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#3B5487
Tritanopia (blue-blind)
#8F2D52
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a188a;
/* rgb */ color: rgb(138, 24, 138);
/* oklch */ color: oklch(45.4% 0.191 328.2);
Tailwind
colors: {
  custom: {
    50: '#b065ad',
    500: '#8a188a',
    950: '#000000',
  },
}
SCSS
$custom: #8a188a;
$custom-light: #b065ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a188a",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.19088,
    "h": 328.2
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#8A188A
secondary
#40BD40
accent
#ED3B3B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A188A

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

Preview Lab → · Contrast checker → · Palette generator →

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