#9F5F9B#9F5F9B

#9F5F9B is a mid, moderate purple. Relative luminance 0.179; OKLCH L 57.8% C 0.116 H 329.2°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#9F5F9B
RGBrgb(159, 95, 155)
HSLhsl(304, 25%, 50%)
HSVhsv(304, 40%, 62%)
CMYKcmyk(0%, 40.3%, 2.5%, 37.6%)
CIE-LABlab(49.40, 35.46, -21.83)
CIE-LCHlch(49.40, 41.64, 328.39°)
OKLaboklab(57.81% 0.0995 -0.0593)
OKLCHoklch(57.81% 0.116 329.2)
XYZxyz(24.3063, 17.9231, 33.1832)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5F9B #5F9F63
analogous
#835F9F #9F5F9B #9F5F7B
triadic
#9F5F9B #9B9F5F #5F9B9F
tetradic
#9F5F9B #9F835F #5F9F63 #5F7B9F
square
#9F5F9B #9F835F #5F9F63 #5F7B9F
split-complementary
#9F5F9B #7B9F5F #5F9F83
monochromatic
#523150 #794876 #9F5F9B #B685B3 #CDABCB

Accessibility & contrast

On white

4.58
#9F5F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#9F5F9B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5F9B
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5F9B#FFFFFF#000000##000000
##9F5F9B1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C709D
Deuteranopia (green-blind)
#6C7999
Tritanopia (blue-blind)
#A36476
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9f5f9b;
/* rgb */ color: rgb(159, 95, 155);
/* oklch */ color: oklch(57.8% 0.116 329.2);
Tailwind
colors: {
  custom: {
    50: '#bd8eb8',
    500: '#9f5f9b',
    950: '#000000',
  },
}
SCSS
$custom: #9f5f9b;
$custom-light: #bd8eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5f9b",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 155
  },
  "hsl": {
    "h": 303.75,
    "s": 25.197,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57812,
    "c": 0.1158,
    "h": 329.2
  },
  "luminance": 0.17922
}

Semantic roles & 50–950 ramp

primary
#9F5F9B
secondary
#9EBBA0
accent
#C26C66
background
#FBF8FB
surface
#F7F0F6
border
#D0CBD0
text
#120C11
muted
#817D80

Preview Lab

Preview with #9F5F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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