#9040A5#9040A5

#9040A5 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.9% C 0.169 H 318.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9040A5
RGBrgb(144, 64, 165)
HSLhsl(288, 44%, 45%)
HSVhsv(288, 61%, 65%)
CMYKcmyk(12.7%, 61.2%, 0%, 35.3%)
CIE-LABlab(41.71, 49.27, -39.95)
CIE-LCHlch(41.71, 63.43, 320.96°)
OKLaboklab(51.86% 0.1273 -0.1115)
OKLCHoklch(51.86% 0.169 318.8)
XYZxyz(20.1256, 12.3135, 36.9066)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040A5 #55A540
analogous
#5E40A5 #9040A5 #A54087
triadic
#9040A5 #A59040 #40A590
tetradic
#9040A5 #A55E40 #55A540 #4087A5
square
#9040A5 #A55E40 #55A540 #4087A5
split-complementary
#9040A5 #87A540 #40A55E
monochromatic
#431E4D #6A2F79 #9040A5 #AD61C2 #C48DD3

Accessibility & contrast

On white

6.06
#9040A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9040A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040A5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040A5#FFFFFF#000000##FFFFFF
##9040A51.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA8
Deuteranopia (green-blind)
#4665A2
Tritanopia (blue-blind)
#90516C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9040a5;
/* rgb */ color: rgb(144, 64, 165);
/* oklch */ color: oklch(51.9% 0.169 318.8);
Tailwind
colors: {
  custom: {
    50: '#b37ac0',
    500: '#9040a5',
    950: '#000000',
  },
}
SCSS
$custom: #9040a5;
$custom-light: #b37ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#9040a5",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 287.525,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51856,
    "c": 0.1692,
    "h": 318.8
  },
  "luminance": 0.12313
}

Semantic roles & 50–950 ramp

primary
#9040A5
secondary
#8FBE83
accent
#D4546F
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #9040A5

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

Preview Lab → · Contrast checker → · Palette generator →

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