#9D339C#9D339C

#9D339C is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.186 H 328.2°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9D339C
RGBrgb(157, 51, 156)
HSLhsl(301, 51%, 41%)
HSVhsv(301, 68%, 62%)
CMYKcmyk(0%, 67.5%, 0.6%, 38.4%)
CIE-LABlab(41.12, 56.51, -35.38)
CIE-LCHlch(41.12, 66.66, 327.95°)
OKLaboklab(51.66% 0.158 -0.0978)
OKLCHoklch(51.66% 0.186 328.2)
XYZxyz(21.0889, 11.9375, 32.6395)
Luminance0.1194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D339C #339D34
analogous
#69339D #9D339C #9D3367
triadic
#9D339C #9C9D33 #339C9D
tetradic
#9D339C #9D6933 #339D34 #33679D
square
#9D339C #9D6933 #339D34 #33679D
split-complementary
#9D339C #679D33 #339D69
monochromatic
#411540 #6F246E #9D339C #C449C3 #D377D2

Accessibility & contrast

On white

6.20
#9D339C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9D339C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D339C
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D339C#FFFFFF#000000##FFFFFF
##9D339C1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#4E6699
Tritanopia (blue-blind)
#A24163
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d339c;
/* rgb */ color: rgb(157, 51, 156);
/* oklch */ color: oklch(51.7% 0.186 328.2);
Tailwind
colors: {
  custom: {
    50: '#bd74b9',
    500: '#9d339c',
    950: '#000000',
  },
}
SCSS
$custom: #9d339c;
$custom-light: #bd74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d339c",
  "rgb": {
    "r": 157,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 300.566,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.5166,
    "c": 0.18576,
    "h": 328.2
  },
  "luminance": 0.11936
}

Semantic roles & 50–950 ramp

primary
#9D339C
secondary
#70BB71
accent
#DA4F4D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D339C

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

Preview Lab → · Contrast checker → · Palette generator →

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