#9F338D#9F338D

#9F338D is a mid, vivid pink. Relative luminance 0.117; OKLCH L 51.2% C 0.175 H 335.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9F338D
RGBrgb(159, 51, 141)
HSLhsl(310, 51%, 41%)
HSVhsv(310, 68%, 62%)
CMYKcmyk(0%, 67.9%, 11.3%, 37.6%)
CIE-LABlab(40.68, 54.53, -26.96)
CIE-LCHlch(40.68, 60.83, 333.69°)
OKLaboklab(51.16% 0.1589 -0.0735)
OKLCHoklch(51.16% 0.175 335.2)
XYZxyz(20.2898, 11.6634, 26.3768)
Luminance0.1166 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F338D #339F45
analogous
#7B339F #9F338D #9F3357
triadic
#9F338D #8D9F33 #338D9F
tetradic
#9F338D #9F7B33 #339F45 #33579F
square
#9F338D #9F7B33 #339F45 #33579F
split-complementary
#9F338D #579F33 #339F7B
monochromatic
#42153B #712464 #9F338D #C54AB1 #D479C5

Accessibility & contrast

On white

6.30
#9F338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9F338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F338D
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F338D#FFFFFF#000000##FFFFFF
##9F338D1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#57668A
Tritanopia (blue-blind)
#A73A5B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f338d;
/* rgb */ color: rgb(159, 51, 141);
/* oklch */ color: oklch(51.2% 0.175 335.2);
Tailwind
colors: {
  custom: {
    50: '#bf73ae',
    500: '#9f338d',
    950: '#000000',
  },
}
SCSS
$custom: #9f338d;
$custom-light: #bf73ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9f338d",
  "rgb": {
    "r": 159,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 310,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51156,
    "c": 0.17508,
    "h": 335.2
  },
  "luminance": 0.11662
}

Semantic roles & 50–950 ramp

primary
#9F338D
secondary
#71BC7E
accent
#DB654D
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #9F338D

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

Preview Lab → · Contrast checker → · Palette generator →

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