#9F318F#9F318F

#9F318F is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.1% C 0.179 H 334.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9F318F
RGBrgb(159, 49, 143)
HSLhsl(309, 53%, 41%)
HSVhsv(309, 69%, 62%)
CMYKcmyk(0%, 69.2%, 10.1%, 37.6%)
CIE-LABlab(40.50, 55.63, -28.46)
CIE-LCHlch(40.50, 62.48, 332.90°)
OKLaboklab(51.06% 0.1614 -0.0778)
OKLCHoklch(51.06% 0.179 334.3)
XYZxyz(20.3545, 11.5524, 27.1391)
Luminance0.1155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F318F #319F41
analogous
#78319F #9F318F #9F3158
triadic
#9F318F #8F9F31 #318F9F
tetradic
#9F318F #9F7831 #319F41 #31589F
square
#9F318F #9F7831 #319F41 #31589F
split-complementary
#9F318F #589F31 #319F78
monochromatic
#41143B #702365 #9F318F #C647B4 #D576C7

Accessibility & contrast

On white

6.34
#9F318F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9F318F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F318F
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F318F#FFFFFF#000000##FFFFFF
##9F318F1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5592
Deuteranopia (green-blind)
#55658C
Tritanopia (blue-blind)
#A63A5C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9f318f;
/* rgb */ color: rgb(159, 49, 143);
/* oklch */ color: oklch(51.1% 0.179 334.3);
Tailwind
colors: {
  custom: {
    50: '#bf73b0',
    500: '#9f318f',
    950: '#000000',
  },
}
SCSS
$custom: #9f318f;
$custom-light: #bf73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f318f",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 308.727,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51057,
    "c": 0.17919,
    "h": 334.3
  },
  "luminance": 0.11551
}

Semantic roles & 50–950 ramp

primary
#9F318F
secondary
#6FBD7A
accent
#DC614C
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130910
muted
#827B7F

Preview Lab

Preview with #9F318F

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

Preview Lab → · Contrast checker → · Palette generator →

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