#9F40AF#9F40AF

#9F40AF is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.4% C 0.186 H 321.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9F40AF
RGBrgb(159, 64, 175)
HSLhsl(291, 46%, 47%)
HSVhsv(291, 63%, 69%)
CMYKcmyk(9.1%, 63.4%, 0%, 31.4%)
CIE-LABlab(44.42, 55.00, -41.43)
CIE-LCHlch(44.42, 68.86, 323.01°)
OKLaboklab(54.45% 0.1458 -0.1154)
OKLCHoklch(54.45% 0.186 321.6)
XYZxyz(23.8685, 14.1341, 42.0200)
Luminance0.1413 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F40AF #50AF40
analogous
#6740AF #9F40AF #AF4088
triadic
#9F40AF #AF9F40 #40AF9F
tetradic
#9F40AF #AF6740 #50AF40 #4088AF
square
#9F40AF #AF6740 #50AF40 #4088AF
split-complementary
#9F40AF #88AF40 #40AF67
monochromatic
#4E1F55 #763082 #9F40AF #B965C7 #CD92D7

Accessibility & contrast

On white

5.49
#9F40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#9F40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F40AF
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F40AF#FFFFFF#000000##FFFFFF
##9F40AF1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B2
Deuteranopia (green-blind)
#4D6DAC
Tritanopia (blue-blind)
#A15272
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9f40af;
/* rgb */ color: rgb(159, 64, 175);
/* oklch */ color: oklch(54.4% 0.186 321.6);
Tailwind
colors: {
  custom: {
    50: '#be7bc7',
    500: '#9f40af',
    950: '#000000',
  },
}
SCSS
$custom: #9f40af;
$custom-light: #be7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9f40af",
  "rgb": {
    "r": 159,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 291.351,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5445,
    "c": 0.18592,
    "h": 321.6
  },
  "luminance": 0.14133
}

Semantic roles & 50–950 ramp

primary
#9F40AF
secondary
#91C388
accent
#D65265
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9F40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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