#9D339B#9D339B

#9D339B is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.6% C 0.185 H 328.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9D339B
RGBrgb(157, 51, 155)
HSLhsl(301, 51%, 41%)
HSVhsv(301, 68%, 62%)
CMYKcmyk(0%, 67.5%, 1.3%, 38.4%)
CIE-LABlab(41.06, 56.33, -34.86)
CIE-LCHlch(41.06, 66.25, 328.25°)
OKLaboklab(51.6% 0.1579 -0.0963)
OKLCHoklch(51.6% 0.185 328.6)
XYZxyz(21.0046, 11.9038, 32.1953)
Luminance0.1190 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D339B #339D35
analogous
#6A339D #9D339B #9D3366
triadic
#9D339B #9B9D33 #339B9D
tetradic
#9D339B #9D6A33 #339D35 #33669D
square
#9D339B #9D6A33 #339D35 #33669D
split-complementary
#9D339B #669D33 #339D6A
monochromatic
#411540 #6F246D #9D339B #C449C2 #D377D1

Accessibility & contrast

On white

6.21
#9D339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9D339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D339B
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D339B#FFFFFF#000000##FFFFFF
##9D339B1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589E
Deuteranopia (green-blind)
#4F6698
Tritanopia (blue-blind)
#A24163
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d339b;
/* rgb */ color: rgb(157, 51, 155);
/* oklch */ color: oklch(51.6% 0.185 328.6);
Tailwind
colors: {
  custom: {
    50: '#bd74b9',
    500: '#9d339b',
    950: '#000000',
  },
}
SCSS
$custom: #9d339b;
$custom-light: #bd74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d339b",
  "rgb": {
    "r": 157,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 301.132,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51604,
    "c": 0.18495,
    "h": 328.6
  },
  "luminance": 0.11902
}

Semantic roles & 50–950 ramp

primary
#9D339B
secondary
#70BB72
accent
#DA504D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D339B

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

Preview Lab → · Contrast checker → · Palette generator →

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