#8A188B#8A188B

#8A188B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.192 H 327.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#8A188B
RGBrgb(138, 24, 139)
HSLhsl(299, 71%, 32%)
HSVhsv(299, 83%, 55%)
CMYKcmyk(0.7%, 82.7%, 0%, 45.5%)
CIE-LABlab(33.82, 58.24, -36.79)
CIE-LCHlch(33.82, 68.89, 327.72°)
OKLaboklab(45.51% 0.1621 -0.1022)
OKLCHoklch(45.51% 0.192 327.8)
XYZxyz(15.4679, 7.9218, 25.1355)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A188B #198B18
analogous
#51188B #8A188B #8B1853
triadic
#8A188B #8B8A18 #188B8A
tetradic
#8A188B #8B5118 #198B18 #18538B
square
#8A188B #8B5118 #198B18 #18538B
split-complementary
#8A188B #538B18 #188B51
monochromatic
#220623 #560F57 #8A188B #BE21BF #DD3FDE

Accessibility & contrast

On white

8.13
#8A188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A188B
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A188B#FFFFFF#000000##FFFFFF
##8A188B1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#3A5488
Tritanopia (blue-blind)
#8E2D53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a188b;
/* rgb */ color: rgb(138, 24, 139);
/* oklch */ color: oklch(45.5% 0.192 327.8);
Tailwind
colors: {
  custom: {
    50: '#b066ad',
    500: '#8a188b',
    950: '#000000',
  },
}
SCSS
$custom: #8a188b;
$custom-light: #b066ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a188b",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 299.478,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45505,
    "c": 0.19164,
    "h": 327.8
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#8A188B
secondary
#42BE40
accent
#ED3A3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A188B

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

Preview Lab → · Contrast checker → · Palette generator →

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