#8A337A#8A337A

#8A337A is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.0% C 0.146 H 335.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#8A337A
RGBrgb(138, 51, 122)
HSLhsl(311, 46%, 37%)
HSVhsv(311, 63%, 54%)
CMYKcmyk(0%, 63%, 11.6%, 45.9%)
CIE-LABlab(36.32, 45.73, -22.29)
CIE-LCHlch(36.32, 50.88, 334.02°)
OKLaboklab(47.01% 0.1332 -0.0606)
OKLCHoklch(47.01% 0.146 335.5)
XYZxyz(15.1780, 9.1773, 19.3806)
Luminance0.0918 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A337A #338A43
analogous
#6E338A #8A337A #8A334F
triadic
#8A337A #7A8A33 #337A8A
tetradic
#8A337A #8A6E33 #338A43 #334F8A
square
#8A337A #8A6E33 #338A43 #334F8A
split-complementary
#8A337A #4F8A33 #338A6E
monochromatic
#31122B #5D2252 #8A337A #B744A2 #C96EB9

Accessibility & contrast

On white

7.41
#8A337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A337A
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A337A#FFFFFF#000000##FFFFFF
##8A337A1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334D7C
Deuteranopia (green-blind)
#4F5A78
Tritanopia (blue-blind)
#913851
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a337a;
/* rgb */ color: rgb(138, 51, 122);
/* oklch */ color: oklch(47.0% 0.146 335.5);
Tailwind
colors: {
  custom: {
    50: '#af71a0',
    500: '#8a337a',
    950: '#000000',
  },
}
SCSS
$custom: #8a337a;
$custom-light: #af71a0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a337a",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 311.034,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47012,
    "c": 0.14635,
    "h": 335.5
  },
  "luminance": 0.09176
}

Semantic roles & 50–950 ramp

primary
#8A337A
secondary
#67B175
accent
#D66A52
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A337A

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

Preview Lab → · Contrast checker → · Palette generator →

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