#8A188F#8A188F

#8A188F is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.8% C 0.195 H 326.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#8A188F
RGBrgb(138, 24, 143)
HSLhsl(297, 71%, 33%)
HSVhsv(297, 83%, 56%)
CMYKcmyk(3.5%, 83.2%, 0%, 43.9%)
CIE-LABlab(34.07, 58.91, -38.86)
CIE-LCHlch(34.07, 70.58, 326.59°)
OKLaboklab(45.76% 0.1618 -0.1082)
OKLCHoklch(45.76% 0.195 326.2)
XYZxyz(15.7655, 8.0408, 26.7029)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A188F #1D8F18
analogous
#4E188F #8A188F #8F1858
triadic
#8A188F #8F8A18 #188F8A
tetradic
#8A188F #8F4E18 #1D8F18 #18588F
square
#8A188F #8F4E18 #1D8F18 #18588F
split-complementary
#8A188F #588F18 #188F4E
monochromatic
#250626 #570F5B #8A188F #BD21C3 #D942DF

Accessibility & contrast

On white

8.05
#8A188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8A188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A188F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A188F#FFFFFF#000000##FFFFFF
##8A188F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#37558C
Tritanopia (blue-blind)
#8E3055
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a188f;
/* rgb */ color: rgb(138, 24, 143);
/* oklch */ color: oklch(45.8% 0.195 326.2);
Tailwind
colors: {
  custom: {
    50: '#b066b0',
    500: '#8a188f',
    950: '#000000',
  },
}
SCSS
$custom: #8a188f;
$custom-light: #b066b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a188f",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 297.479,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4576,
    "c": 0.19469,
    "h": 326.2
  },
  "luminance": 0.0804
}

Semantic roles & 50–950 ramp

primary
#8A188F
secondary
#48C043
accent
#EE3A41
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A188F

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

Preview Lab → · Contrast checker → · Palette generator →

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