#8A168C#8A168C

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

Color values

HEX#8A168C
RGBrgb(138, 22, 140)
HSLhsl(299, 73%, 32%)
HSVhsv(299, 84%, 55%)
CMYKcmyk(1.4%, 84.3%, 0%, 45.1%)
CIE-LABlab(33.71, 58.89, -37.58)
CIE-LCHlch(33.71, 69.86, 327.46°)
OKLaboklab(45.45% 0.1634 -0.1045)
OKLCHoklch(45.45% 0.194 327.4)
XYZxyz(15.5015, 7.8717, 25.5088)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A168C #188C16
analogous
#4F168C #8A168C #8C1653
triadic
#8A168C #8C8A16 #168C8A
tetradic
#8A168C #8C4F16 #188C16 #16538C
square
#8A168C #8C4F16 #188C16 #16538C
split-complementary
#8A168C #538C16 #168C4F
monochromatic
#220522 #560E57 #8A168C #BE1EC1 #DE3CE0

Accessibility & contrast

On white

8.16
#8A168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8A168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A168C
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A168C#FFFFFF#000000##FFFFFF
##8A168C1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#395489
Tritanopia (blue-blind)
#8E2D53
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a168c;
/* rgb */ color: rgb(138, 22, 140);
/* oklch */ color: oklch(45.5% 0.194 327.4);
Tailwind
colors: {
  custom: {
    50: '#b065ae',
    500: '#8a168c',
    950: '#000000',
  },
}
SCSS
$custom: #8a168c;
$custom-light: #b065ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a168c",
  "rgb": {
    "r": 138,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 298.983,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4545,
    "c": 0.19397,
    "h": 327.4
  },
  "luminance": 0.07871
}

Semantic roles & 50–950 ramp

primary
#8A168C
secondary
#40C03E
accent
#F0383B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A168C

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

Preview Lab → · Contrast checker → · Palette generator →

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