#9540AF#9540AF

#9540AF is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.1% C 0.181 H 317.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9540AF
RGBrgb(149, 64, 175)
HSLhsl(286, 46%, 47%)
HSVhsv(286, 63%, 69%)
CMYKcmyk(14.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(42.99, 52.55, -43.80)
CIE-LCHlch(42.99, 68.41, 320.19°)
OKLaboklab(53.12% 0.1336 -0.1226)
OKLCHoklch(53.12% 0.181 317.5)
XYZxyz(21.9646, 13.1524, 41.9308)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9540AF #5AAF40
analogous
#5E40AF #9540AF #AF4092
triadic
#9540AF #AF9540 #40AF95
tetradic
#9540AF #AF5E40 #5AAF40 #4092AF
square
#9540AF #AF5E40 #5AAF40 #4092AF
split-complementary
#9540AF #92AF40 #40AF5E
monochromatic
#491F55 #6F3082 #9540AF #B065C7 #C792D7

Accessibility & contrast

On white

5.78
#9540AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#9540AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9540AF
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9540AF#FFFFFF#000000##FFFFFF
##9540AF1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C60B2
Deuteranopia (green-blind)
#4368AC
Tritanopia (blue-blind)
#945372
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9540af;
/* rgb */ color: rgb(149, 64, 175);
/* oklch */ color: oklch(53.1% 0.181 317.5);
Tailwind
colors: {
  custom: {
    50: '#b77ac7',
    500: '#9540af',
    950: '#000000',
  },
}
SCSS
$custom: #9540af;
$custom-light: #b77ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#9540af",
  "rgb": {
    "r": 149,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 285.946,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.53118,
    "c": 0.18133,
    "h": 317.5
  },
  "luminance": 0.13151
}

Semantic roles & 50–950 ramp

primary
#9540AF
secondary
#96C388
accent
#D65271
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9540AF

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

Preview Lab → · Contrast checker → · Palette generator →

#9540AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva