#8A337B#8A337B

#8A337B is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.1% C 0.147 H 335.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#8A337B
RGBrgb(138, 51, 123)
HSLhsl(310, 46%, 37%)
HSVhsv(310, 63%, 54%)
CMYKcmyk(0%, 63%, 10.9%, 45.9%)
CIE-LABlab(36.37, 45.90, -22.84)
CIE-LCHlch(36.37, 51.27, 333.55°)
OKLaboklab(47.06% 0.1334 -0.0621)
OKLCHoklch(47.06% 0.147 335)
XYZxyz(15.2403, 9.2022, 19.7086)
Luminance0.0920 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A337B #338A42
analogous
#6E338A #8A337B #8A3350
triadic
#8A337B #7B8A33 #337B8A
tetradic
#8A337B #8A6E33 #338A42 #33508A
square
#8A337B #8A6E33 #338A42 #33508A
split-complementary
#8A337B #508A33 #338A6E
monochromatic
#31122B #5D2253 #8A337B #B744A3 #C96EBA

Accessibility & contrast

On white

7.39
#8A337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A337B
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A337B#FFFFFF#000000##FFFFFF
##8A337B1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334D7D
Deuteranopia (green-blind)
#4E5A79
Tritanopia (blue-blind)
#913852
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a337b;
/* rgb */ color: rgb(138, 51, 123);
/* oklch */ color: oklch(47.1% 0.147 335.0);
Tailwind
colors: {
  custom: {
    50: '#af71a1',
    500: '#8a337b',
    950: '#000000',
  },
}
SCSS
$custom: #8a337b;
$custom-light: #af71a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a337b",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 310.345,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47062,
    "c": 0.14715,
    "h": 335
  },
  "luminance": 0.09201
}

Semantic roles & 50–950 ramp

primary
#8A337B
secondary
#67B174
accent
#D66952
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080F
muted
#807B7E

Preview Lab

Preview with #8A337B

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

Preview Lab → · Contrast checker → · Palette generator →

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