#9D339A#9D339A

#9D339A is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.5% C 0.184 H 329.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9D339A
RGBrgb(157, 51, 154)
HSLhsl(302, 51%, 41%)
HSVhsv(302, 68%, 62%)
CMYKcmyk(0%, 67.5%, 1.9%, 38.4%)
CIE-LABlab(41.01, 56.16, -34.34)
CIE-LCHlch(41.01, 65.83, 328.56°)
OKLaboklab(51.55% 0.1579 -0.0948)
OKLCHoklch(51.55% 0.184 329)
XYZxyz(20.9210, 11.8703, 31.7549)
Luminance0.1187 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D339A #339D36
analogous
#6B339D #9D339A #9D3365
triadic
#9D339A #9A9D33 #339A9D
tetradic
#9D339A #9D6B33 #339D36 #33659D
square
#9D339A #9D6B33 #339D36 #33659D
split-complementary
#9D339A #659D33 #339D6B
monochromatic
#41153F #6F246D #9D339A #C449C0 #D377D0

Accessibility & contrast

On white

6.22
#9D339A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9D339A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D339A
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D339A#FFFFFF#000000##FFFFFF
##9D339A1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589D
Deuteranopia (green-blind)
#4F6697
Tritanopia (blue-blind)
#A24162
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d339a;
/* rgb */ color: rgb(157, 51, 154);
/* oklch */ color: oklch(51.5% 0.184 329.0);
Tailwind
colors: {
  custom: {
    50: '#bd74b8',
    500: '#9d339a',
    950: '#000000',
  },
}
SCSS
$custom: #9d339a;
$custom-light: #bd74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d339a",
  "rgb": {
    "r": 157,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 301.698,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51548,
    "c": 0.18413,
    "h": 329
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#9D339A
secondary
#70BB73
accent
#DA514D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D339A

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

Preview Lab → · Contrast checker → · Palette generator →

#9D339A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva