#9A40AF#9A40AF

#9A40AF is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.8% C 0.184 H 319.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9A40AF
RGBrgb(154, 64, 175)
HSLhsl(289, 46%, 47%)
HSVhsv(289, 63%, 69%)
CMYKcmyk(12%, 63.4%, 0%, 31.4%)
CIE-LABlab(43.70, 53.77, -42.62)
CIE-LCHlch(43.70, 68.62, 321.60°)
OKLaboklab(53.78% 0.1398 -0.119)
OKLCHoklch(53.78% 0.184 319.6)
XYZxyz(22.8967, 13.6330, 41.9745)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A40AF #55AF40
analogous
#6340AF #9A40AF #AF408D
triadic
#9A40AF #AF9A40 #40AF9A
tetradic
#9A40AF #AF6340 #55AF40 #408DAF
square
#9A40AF #AF6340 #55AF40 #408DAF
split-complementary
#9A40AF #8DAF40 #40AF63
monochromatic
#4B1F55 #733082 #9A40AF #B465C7 #CA92D7

Accessibility & contrast

On white

5.64
#9A40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#9A40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A40AF
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A40AF#FFFFFF#000000##FFFFFF
##9A40AF1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2161B2
Deuteranopia (green-blind)
#486AAC
Tritanopia (blue-blind)
#9A5372
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9a40af;
/* rgb */ color: rgb(154, 64, 175);
/* oklch */ color: oklch(53.8% 0.184 319.6);
Tailwind
colors: {
  custom: {
    50: '#bb7bc7',
    500: '#9a40af',
    950: '#000000',
  },
}
SCSS
$custom: #9a40af;
$custom-light: #bb7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a40af",
  "rgb": {
    "r": 154,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 288.649,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53779,
    "c": 0.18356,
    "h": 319.6
  },
  "luminance": 0.13632
}

Semantic roles & 50–950 ramp

primary
#9A40AF
secondary
#93C388
accent
#D6526B
background
#FBF7FC
surface
#F7EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9A40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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