#8A336D#8A336D

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

Color values

HEX#8A336D
RGBrgb(138, 51, 109)
HSLhsl(320, 46%, 37%)
HSVhsv(320, 63%, 54%)
CMYKcmyk(0%, 63%, 21%, 45.9%)
CIE-LABlab(35.75, 43.67, -15.03)
CIE-LCHlch(35.75, 46.18, 341.01°)
OKLaboklab(46.4% 0.1306 -0.0401)
OKLCHoklch(46.4% 0.137 342.9)
XYZxyz(14.4258, 8.8764, 15.4186)
Luminance0.0887 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A336D #338A50
analogous
#7C338A #8A336D #8A3342
triadic
#8A336D #6D8A33 #336D8A
tetradic
#8A336D #8A7C33 #338A50 #33428A
square
#8A336D #8A7C33 #338A50 #33428A
split-complementary
#8A336D #428A33 #338A7C
monochromatic
#311226 #5D224A #8A336D #B74490 #C96EAB

Accessibility & contrast

On white

7.57
#8A336D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A336D
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A336D#FFFFFF#000000##FFFFFF
##8A336D1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4B6F
Deuteranopia (green-blind)
#53596B
Tritanopia (blue-blind)
#92334B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a336d;
/* rgb */ color: rgb(138, 51, 109);
/* oklch */ color: oklch(46.4% 0.137 342.9);
Tailwind
colors: {
  custom: {
    50: '#af7097',
    500: '#8a336d',
    950: '#000000',
  },
}
SCSS
$custom: #8a336d;
$custom-light: #af7097;
$custom-dark: #000000;
JSON
{
  "hex": "#8a336d",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 109
  },
  "hsl": {
    "h": 320,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46399,
    "c": 0.13661,
    "h": 342.9
  },
  "luminance": 0.08875
}

Semantic roles & 50–950 ramp

primary
#8A336D
secondary
#67B180
accent
#D67E52
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A336D

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

Preview Lab → · Contrast checker → · Palette generator →

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