#8A188E#8A188E

#8A188E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.194 H 326.6°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#8A188E
RGBrgb(138, 24, 142)
HSLhsl(298, 71%, 33%)
HSVhsv(298, 83%, 56%)
CMYKcmyk(2.8%, 83.1%, 0%, 44.3%)
CIE-LABlab(34.01, 58.74, -38.35)
CIE-LCHlch(34.01, 70.15, 326.86°)
OKLaboklab(45.7% 0.1619 -0.1067)
OKLCHoklch(45.7% 0.194 326.6)
XYZxyz(15.6901, 8.0107, 26.3058)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A188E #1C8E18
analogous
#4F188E #8A188E #8E1857
triadic
#8A188E #8E8A18 #188E8A
tetradic
#8A188E #8E4F18 #1C8E18 #18578E
square
#8A188E #8E4F18 #1C8E18 #18578E
split-complementary
#8A188E #578E18 #188E4F
monochromatic
#240625 #570F5A #8A188E #BD21C2 #DA41DF

Accessibility & contrast

On white

8.07
#8A188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A188E
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A188E#FFFFFF#000000##FFFFFF
##8A188E1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#38558B
Tritanopia (blue-blind)
#8E2F54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a188e;
/* rgb */ color: rgb(138, 24, 142);
/* oklch */ color: oklch(45.7% 0.194 326.6);
Tailwind
colors: {
  custom: {
    50: '#b066af',
    500: '#8a188e',
    950: '#000000',
  },
}
SCSS
$custom: #8a188e;
$custom-light: #b066af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a188e",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 297.966,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45696,
    "c": 0.19393,
    "h": 326.6
  },
  "luminance": 0.0801
}

Semantic roles & 50–950 ramp

primary
#8A188E
secondary
#46C042
accent
#EE3A40
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A188E

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

Preview Lab → · Contrast checker → · Palette generator →

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