#9040B3#9040B3

#9040B3 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 52.7% C 0.183 H 314.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9040B3
RGBrgb(144, 64, 179)
HSLhsl(282, 47%, 48%)
HSVhsv(282, 64%, 70%)
CMYKcmyk(19.6%, 64.2%, 0%, 29.8%)
CIE-LABlab(42.54, 52.19, -46.92)
CIE-LCHlch(42.54, 70.18, 318.04°)
OKLaboklab(52.72% 0.1273 -0.1319)
OKLCHoklch(52.72% 0.183 314)
XYZxyz(21.4703, 12.8514, 43.9887)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040B3 #63B340
analogous
#5640B3 #9040B3 #B3409C
triadic
#9040B3 #B39040 #40B390
tetradic
#9040B3 #B35640 #63B340 #409CB3
square
#9040B3 #B35640 #63B340 #409CB3
split-complementary
#9040B3 #9CB340 #40B356
monochromatic
#472059 #6C3086 #9040B3 #AB67C9 #C494D9

Accessibility & contrast

On white

5.88
#9040B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#9040B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040B3
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040B3#FFFFFF#000000##FFFFFF
##9040B31.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D60B7
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#8D5674
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9040b3;
/* rgb */ color: rgb(144, 64, 179);
/* oklch */ color: oklch(52.7% 0.183 314.0);
Tailwind
colors: {
  custom: {
    50: '#b47aca',
    500: '#9040b3',
    950: '#000000',
  },
}
SCSS
$custom: #9040b3;
$custom-light: #b47aca;
$custom-dark: #000000;
JSON
{
  "hex": "#9040b3",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 281.739,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.18327,
    "h": 314
  },
  "luminance": 0.12851
}

Semantic roles & 50–950 ramp

primary
#9040B3
secondary
#9CC48A
accent
#D7517A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #9040B3

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

Preview Lab → · Contrast checker → · Palette generator →

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