#8A336B#8A336B

#8A336B is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.3% C 0.135 H 344.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#8A336B
RGBrgb(138, 51, 107)
HSLhsl(321, 46%, 37%)
HSVhsv(321, 63%, 54%)
CMYKcmyk(0%, 63%, 22.5%, 45.9%)
CIE-LABlab(35.66, 43.37, -13.89)
CIE-LCHlch(35.66, 45.54, 342.24°)
OKLaboklab(46.31% 0.1301 -0.0369)
OKLCHoklch(46.31% 0.135 344.1)
XYZxyz(14.3193, 8.8338, 14.8580)
Luminance0.0883 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A336B #338A52
analogous
#7E338A #8A336B #8A3340
triadic
#8A336B #6B8A33 #336B8A
tetradic
#8A336B #8A7E33 #338A52 #33408A
square
#8A336B #8A7E33 #338A52 #33408A
split-complementary
#8A336B #408A33 #338A7E
monochromatic
#311226 #5D2248 #8A336B #B7448E #C96EA9

Accessibility & contrast

On white

7.59
#8A336B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A336B
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A336B#FFFFFF#000000##FFFFFF
##8A336B1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4B6D
Deuteranopia (green-blind)
#545969
Tritanopia (blue-blind)
#93334A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a336b;
/* rgb */ color: rgb(138, 51, 107);
/* oklch */ color: oklch(46.3% 0.135 344.1);
Tailwind
colors: {
  custom: {
    50: '#af7095',
    500: '#8a336b',
    950: '#000000',
  },
}
SCSS
$custom: #8a336b;
$custom-light: #af7095;
$custom-dark: #000000;
JSON
{
  "hex": "#8a336b",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 107
  },
  "hsl": {
    "h": 321.379,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4631,
    "c": 0.13525,
    "h": 344.1
  },
  "luminance": 0.08832
}

Semantic roles & 50–950 ramp

primary
#8A336B
secondary
#67B182
accent
#D68152
background
#FBF7F9
surface
#F6EDF1
border
#D0C8CB
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A336B

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

Preview Lab → · Contrast checker → · Palette generator →

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