#9040AC#9040AC

#9040AC is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.3% C 0.176 H 316.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9040AC
RGBrgb(144, 64, 172)
HSLhsl(284, 46%, 46%)
HSVhsv(284, 63%, 67%)
CMYKcmyk(16.3%, 62.8%, 0%, 32.5%)
CIE-LABlab(42.12, 50.71, -43.46)
CIE-LCHlch(42.12, 66.79, 319.40°)
OKLaboklab(52.28% 0.1274 -0.1217)
OKLCHoklch(52.28% 0.176 316.3)
XYZxyz(20.7803, 12.5754, 40.3544)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040AC #5CAC40
analogous
#5A40AC #9040AC #AC4092
triadic
#9040AC #AC9040 #40AC90
tetradic
#9040AC #AC5A40 #5CAC40 #4092AC
square
#9040AC #AC5A40 #5CAC40 #4092AC
split-complementary
#9040AC #92AC40 #40AC5A
monochromatic
#451F53 #6B2F7F #9040AC #AC64C5 #C491D6

Accessibility & contrast

On white

5.97
#9040AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9040AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040AC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040AC#FFFFFF#000000##FFFFFF
##9040AC1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAF
Deuteranopia (green-blind)
#4166A9
Tritanopia (blue-blind)
#8E5370
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9040ac;
/* rgb */ color: rgb(144, 64, 172);
/* oklch */ color: oklch(52.3% 0.176 316.3);
Tailwind
colors: {
  custom: {
    50: '#b37ac5',
    500: '#9040ac',
    950: '#000000',
  },
}
SCSS
$custom: #9040ac;
$custom-light: #b37ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#9040ac",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 284.444,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.52281,
    "c": 0.1762,
    "h": 316.3
  },
  "luminance": 0.12575
}

Semantic roles & 50–950 ramp

primary
#9040AC
secondary
#96C187
accent
#D55274
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #9040AC

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

Preview Lab → · Contrast checker → · Palette generator →

#9040AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva