#8A336C#8A336C

#8A336C is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.4% C 0.136 H 343.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8A336C
RGBrgb(138, 51, 108)
HSLhsl(321, 46%, 37%)
HSVhsv(321, 63%, 54%)
CMYKcmyk(0%, 63%, 21.7%, 45.9%)
CIE-LABlab(35.70, 43.52, -14.46)
CIE-LCHlch(35.70, 45.86, 341.62°)
OKLaboklab(46.35% 0.1303 -0.0385)
OKLCHoklch(46.35% 0.136 343.5)
XYZxyz(14.3723, 8.8550, 15.1367)
Luminance0.0885 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A336C #338A51
analogous
#7D338A #8A336C #8A3340
triadic
#8A336C #6C8A33 #336C8A
tetradic
#8A336C #8A7D33 #338A51 #33408A
square
#8A336C #8A7D33 #338A51 #33408A
split-complementary
#8A336C #408A33 #338A7D
monochromatic
#311226 #5D2249 #8A336C #B7448F #C96EAA

Accessibility & contrast

On white

7.58
#8A336C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A336C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A336C
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A336C#FFFFFF#000000##FFFFFF
##8A336C1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4B6E
Deuteranopia (green-blind)
#54596A
Tritanopia (blue-blind)
#93334B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a336c;
/* rgb */ color: rgb(138, 51, 108);
/* oklch */ color: oklch(46.4% 0.136 343.5);
Tailwind
colors: {
  custom: {
    50: '#af7096',
    500: '#8a336c',
    950: '#000000',
  },
}
SCSS
$custom: #8a336c;
$custom-light: #af7096;
$custom-dark: #000000;
JSON
{
  "hex": "#8a336c",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 108
  },
  "hsl": {
    "h": 320.69,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46354,
    "c": 0.13592,
    "h": 343.5
  },
  "luminance": 0.08854
}

Semantic roles & 50–950 ramp

primary
#8A336C
secondary
#67B181
accent
#D67F52
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A336C

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

Preview Lab → · Contrast checker → · Palette generator →

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