#9F47BA#9F47BA

#9F47BA is a mid, vivid purple. Relative luminance 0.154; OKLCH L 55.9% C 0.186 H 317.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9F47BA
RGBrgb(159, 71, 186)
HSLhsl(286, 45%, 50%)
HSVhsv(286, 62%, 73%)
CMYKcmyk(14.5%, 61.8%, 0%, 27.1%)
CIE-LABlab(46.21, 53.97, -45.05)
CIE-LCHlch(46.21, 70.30, 320.15°)
OKLaboklab(55.94% 0.1374 -0.126)
OKLCHoklch(55.94% 0.186 317.5)
XYZxyz(25.4130, 15.4236, 48.0833)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F47BA #62BA47
analogous
#6547BA #9F47BA #BA479C
triadic
#9F47BA #BA9F47 #47BA9F
tetradic
#9F47BA #BA6547 #62BA47 #479CBA
square
#9F47BA #BA6547 #62BA47 #479CBA
split-complementary
#9F47BA #9CBA47 #47BA65
monochromatic
#542562 #7A358E #9F47BA #B674CB #CDA0DB

Accessibility & contrast

On white

5.14
#9F47BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9F47BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F47BA
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F47BA#FFFFFF#000000##FFFFFF
##9F47BA1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2568BE
Deuteranopia (green-blind)
#4B70B7
Tritanopia (blue-blind)
#9E5B7A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9f47ba;
/* rgb */ color: rgb(159, 71, 186);
/* oklch */ color: oklch(55.9% 0.186 317.5);
Tailwind
colors: {
  custom: {
    50: '#be7fcf',
    500: '#9f47ba',
    950: '#000000',
  },
}
SCSS
$custom: #9f47ba;
$custom-light: #be7fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f47ba",
  "rgb": {
    "r": 159,
    "g": 71,
    "b": 186
  },
  "hsl": {
    "h": 285.913,
    "s": 45.455,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55944,
    "c": 0.18644,
    "h": 317.5
  },
  "luminance": 0.15423
}

Semantic roles & 50–950 ramp

primary
#9F47BA
secondary
#A1C895
accent
#D55371
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9F47BA

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

Preview Lab → · Contrast checker → · Palette generator →

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