#9F4DB2#9F4DB2

#9F4DB2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.3% C 0.170 H 319.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9F4DB2
RGBrgb(159, 77, 178)
HSLhsl(289, 40%, 50%)
HSVhsv(289, 57%, 70%)
CMYKcmyk(10.7%, 56.7%, 0%, 30.2%)
CIE-LABlab(46.84, 49.46, -39.37)
CIE-LCHlch(46.84, 63.22, 321.48°)
OKLaboklab(56.26% 0.1294 -0.1095)
OKLCHoklch(56.26% 0.17 319.8)
XYZxyz(24.9868, 15.8941, 43.8625)
Luminance0.1589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4DB2 #60B24D
analogous
#6D4DB2 #9F4DB2 #B24D92
triadic
#9F4DB2 #B29F4D #4DB29F
tetradic
#9F4DB2 #B26D4D #60B24D #4D92B2
square
#9F4DB2 #B26D4D #60B24D #4D92B2
split-complementary
#9F4DB2 #92B24D #4DB26D
monochromatic
#53285D #793B87 #9F4DB2 #B678C4 #CDA2D7

Accessibility & contrast

On white

5.03
#9F4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#9F4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4DB2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4DB2#FFFFFF#000000##FFFFFF
##9F4DB21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3869B5
Deuteranopia (green-blind)
#5472AF
Tritanopia (blue-blind)
#A05C78
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9f4db2;
/* rgb */ color: rgb(159, 77, 178);
/* oklch */ color: oklch(56.3% 0.170 319.8);
Tailwind
colors: {
  custom: {
    50: '#be83c9',
    500: '#9f4db2',
    950: '#000000',
  },
}
SCSS
$custom: #9f4db2;
$custom-light: #be83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4db2",
  "rgb": {
    "r": 159,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 288.713,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.56258,
    "c": 0.16953,
    "h": 319.8
  },
  "luminance": 0.15893
}

Semantic roles & 50–950 ramp

primary
#9F4DB2
secondary
#9FC497
accent
#CF586F
background
#FBF8FC
surface
#F7EFF8
border
#D0CAD1
text
#120B13
muted
#817C82

Preview Lab

Preview with #9F4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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