#8A188C#8A188C

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

Color values

HEX#8A188C
RGBrgb(138, 24, 140)
HSLhsl(299, 71%, 32%)
HSVhsv(299, 83%, 55%)
CMYKcmyk(1.4%, 82.9%, 0%, 45.1%)
CIE-LABlab(33.88, 58.41, -37.31)
CIE-LCHlch(33.88, 69.31, 327.43°)
OKLaboklab(45.57% 0.1621 -0.1037)
OKLCHoklch(45.57% 0.192 327.4)
XYZxyz(15.5413, 7.9511, 25.5220)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A188C #1A8C18
analogous
#50188C #8A188C #8C1854
triadic
#8A188C #8C8A18 #188C8A
tetradic
#8A188C #8C5018 #1A8C18 #18548C
square
#8A188C #8C5018 #1A8C18 #18548C
split-complementary
#8A188C #548C18 #188C50
monochromatic
#230624 #570F58 #8A188C #BD21C0 #DC40DE

Accessibility & contrast

On white

8.11
#8A188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A188C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A188C#FFFFFF#000000##FFFFFF
##8A188C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#395589
Tritanopia (blue-blind)
#8E2E53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a188c;
/* rgb */ color: rgb(138, 24, 140);
/* oklch */ color: oklch(45.6% 0.192 327.4);
Tailwind
colors: {
  custom: {
    50: '#b066ae',
    500: '#8a188c',
    950: '#000000',
  },
}
SCSS
$custom: #8a188c;
$custom-light: #b066ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a188c",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 298.966,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45568,
    "c": 0.1924,
    "h": 327.4
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

primary
#8A188C
secondary
#43BF41
accent
#ED3A3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A188C

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

Preview Lab → · Contrast checker → · Palette generator →

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