#8A3166#8A3166

#8A3166 is a mid, vivid pink. Relative luminance 0.086; OKLCH L 45.8% C 0.135 H 347.0°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#8A3166
RGBrgb(138, 49, 102)
HSLhsl(324, 48%, 37%)
HSVhsv(324, 64%, 54%)
CMYKcmyk(0%, 64.5%, 26.1%, 45.9%)
CIE-LABlab(35.12, 43.56, -11.54)
CIE-LCHlch(35.12, 45.06, 345.16°)
OKLaboklab(45.85% 0.1316 -0.0304)
OKLCHoklch(45.85% 0.135 347)
XYZxyz(13.9783, 8.5606, 13.4840)
Luminance0.0856 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3166 #318A55
analogous
#82318A #8A3166 #8A3139
triadic
#8A3166 #668A31 #31668A
tetradic
#8A3166 #8A8231 #318A55 #31398A
square
#8A3166 #8A8231 #318A55 #31398A
split-complementary
#8A3166 #398A31 #318A82
monochromatic
#301123 #5D2145 #8A3166 #B74187 #CA6BA4

Accessibility & contrast

On white

7.74
#8A3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3166
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3166#FFFFFF#000000##FFFFFF
##8A31661.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4968
Deuteranopia (green-blind)
#545864
Tritanopia (blue-blind)
#932F47
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a3166;
/* rgb */ color: rgb(138, 49, 102);
/* oklch */ color: oklch(45.8% 0.135 347.0);
Tailwind
colors: {
  custom: {
    50: '#af6f91',
    500: '#8a3166',
    950: '#000000',
  },
}
SCSS
$custom: #8a3166;
$custom-light: #af6f91;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3166",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 324.27,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45848,
    "c": 0.13507,
    "h": 347
  },
  "luminance": 0.08559
}

Semantic roles & 50–950 ramp

primary
#8A3166
secondary
#65B284
accent
#D78751
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080C
muted
#807B7D

Preview Lab

Preview with #8A3166

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

Preview Lab → · Contrast checker → · Palette generator →

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