#9040AD#9040AD

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

Color values

HEX#9040AD
RGBrgb(144, 64, 173)
HSLhsl(284, 46%, 46%)
HSVhsv(284, 63%, 68%)
CMYKcmyk(16.8%, 63%, 0%, 32.2%)
CIE-LABlab(42.18, 50.92, -43.96)
CIE-LCHlch(42.18, 67.27, 319.20°)
OKLaboklab(52.34% 0.1274 -0.1232)
OKLCHoklch(52.34% 0.177 316)
XYZxyz(20.8767, 12.6140, 40.8621)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040AD #5DAD40
analogous
#5A40AD #9040AD #AD4094
triadic
#9040AD #AD9040 #40AD90
tetradic
#9040AD #AD5A40 #5DAD40 #4094AD
square
#9040AD #AD5A40 #5DAD40 #4094AD
split-complementary
#9040AD #94AD40 #40AD5A
monochromatic
#461F54 #6B2F80 #9040AD #AC64C6 #C491D6

Accessibility & contrast

On white

5.96
#9040AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9040AD
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040AD#FFFFFF#000000##FFFFFF
##9040AD1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5FB0
Deuteranopia (green-blind)
#4066AA
Tritanopia (blue-blind)
#8E5371
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9040ad;
/* rgb */ color: rgb(144, 64, 173);
/* oklch */ color: oklch(52.3% 0.177 316.0);
Tailwind
colors: {
  custom: {
    50: '#b47ac6',
    500: '#9040ad',
    950: '#000000',
  },
}
SCSS
$custom: #9040ad;
$custom-light: #b47ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#9040ad",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 284.037,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52344,
    "c": 0.17721,
    "h": 316
  },
  "luminance": 0.12613
}

Semantic roles & 50–950 ramp

primary
#9040AD
secondary
#97C287
accent
#D65275
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #9040AD

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

Preview Lab → · Contrast checker → · Palette generator →

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