#9F338F#9F338F

#9F338F is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.3% C 0.177 H 334.3°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9F338F
RGBrgb(159, 51, 143)
HSLhsl(309, 51%, 41%)
HSVhsv(309, 68%, 62%)
CMYKcmyk(0%, 67.9%, 10.1%, 37.6%)
CIE-LABlab(40.77, 54.85, -28.03)
CIE-LCHlch(40.77, 61.59, 332.93°)
OKLaboklab(51.26% 0.1591 -0.0765)
OKLCHoklch(51.26% 0.177 334.3)
XYZxyz(20.4400, 11.7234, 27.1676)
Luminance0.1172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F338F #339F43
analogous
#79339F #9F338F #9F3359
triadic
#9F338F #8F9F33 #338F9F
tetradic
#9F338F #9F7933 #339F43 #33599F
square
#9F338F #9F7933 #339F43 #33599F
split-complementary
#9F338F #599F33 #339F79
monochromatic
#42153C #712465 #9F338F #C54AB3 #D479C6

Accessibility & contrast

On white

6.28
#9F338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#9F338F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F338F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F338F#FFFFFF#000000##FFFFFF
##9F338F1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325692
Deuteranopia (green-blind)
#56668C
Tritanopia (blue-blind)
#A63B5C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f338f;
/* rgb */ color: rgb(159, 51, 143);
/* oklch */ color: oklch(51.3% 0.177 334.3);
Tailwind
colors: {
  custom: {
    50: '#bf74b0',
    500: '#9f338f',
    950: '#000000',
  },
}
SCSS
$custom: #9f338f;
$custom-light: #bf74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f338f",
  "rgb": {
    "r": 159,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 308.889,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51258,
    "c": 0.17659,
    "h": 334.3
  },
  "luminance": 0.11722
}

Semantic roles & 50–950 ramp

primary
#9F338F
secondary
#71BC7D
accent
#DB624D
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130910
muted
#827B7F

Preview Lab

Preview with #9F338F

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

Preview Lab → · Contrast checker → · Palette generator →

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