#8A336F#8A336F

#8A336F is a mid, vivid pink. Relative luminance 0.089; OKLCH L 46.5% C 0.138 H 341.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#8A336F
RGBrgb(138, 51, 111)
HSLhsl(319, 46%, 37%)
HSVhsv(319, 63%, 54%)
CMYKcmyk(0%, 63%, 19.6%, 45.9%)
CIE-LABlab(35.83, 43.97, -16.16)
CIE-LCHlch(35.83, 46.85, 339.82°)
OKLaboklab(46.49% 0.1311 -0.0433)
OKLCHoklch(46.49% 0.138 341.7)
XYZxyz(14.5347, 8.9199, 15.9921)
Luminance0.0892 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A336F #338A4E
analogous
#7A338A #8A336F #8A3343
triadic
#8A336F #6F8A33 #336F8A
tetradic
#8A336F #8A7A33 #338A4E #33438A
square
#8A336F #8A7A33 #338A4E #33438A
split-complementary
#8A336F #438A33 #338A7A
monochromatic
#311227 #5D224B #8A336F #B74493 #C96EAD

Accessibility & contrast

On white

7.54
#8A336F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A336F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A336F
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A336F#FFFFFF#000000##FFFFFF
##8A336F1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394B71
Deuteranopia (green-blind)
#53596D
Tritanopia (blue-blind)
#92344C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a336f;
/* rgb */ color: rgb(138, 51, 111);
/* oklch */ color: oklch(46.5% 0.138 341.7);
Tailwind
colors: {
  custom: {
    50: '#af7098',
    500: '#8a336f',
    950: '#000000',
  },
}
SCSS
$custom: #8a336f;
$custom-light: #af7098;
$custom-dark: #000000;
JSON
{
  "hex": "#8a336f",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 111
  },
  "hsl": {
    "h": 318.621,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46489,
    "c": 0.13801,
    "h": 341.7
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#8A336F
secondary
#67B17E
accent
#D67B52
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080D
muted
#807B7E

Preview Lab

Preview with #8A336F

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

Preview Lab → · Contrast checker → · Palette generator →

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