#9040D5#9040D5

#9040D5 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.218 H 304.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9040D5
RGBrgb(144, 64, 213)
HSLhsl(272, 64%, 54%)
HSVhsv(272, 70%, 84%)
CMYKcmyk(32.4%, 70%, 0%, 16.5%)
CIE-LABlab(44.80, 59.74, -63.04)
CIE-LCHlch(44.80, 86.85, 313.46°)
OKLaboklab(55.06% 0.1241 -0.1792)
OKLCHoklch(55.06% 0.218 304.7)
XYZxyz(25.3425, 14.4003, 64.3823)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040D5 #85D540
analogous
#4640D5 #9040D5 #D540CF
triadic
#9040D5 #D59040 #40D590
tetradic
#9040D5 #D54640 #85D540 #40CFD5
square
#9040D5 #D54640 #85D540 #40CFD5
split-complementary
#9040D5 #CFD540 #40D546
monochromatic
#511C7F #7127B1 #9040D5 #AD72E0 #CAA4EB

Accessibility & contrast

On white

5.41
#9040D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9040D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040D5
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040D5#FFFFFF#000000##FFFFFF
##9040D51.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#836386
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9040d5;
/* rgb */ color: rgb(144, 64, 213);
/* oklch */ color: oklch(55.1% 0.218 304.7);
Tailwind
colors: {
  custom: {
    50: '#b67be3',
    500: '#9040d5',
    950: '#000000',
  },
}
SCSS
$custom: #9040d5;
$custom-light: #b67be3;
$custom-dark: #000000;
JSON
{
  "hex": "#9040d5",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 272.215,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55064,
    "c": 0.21795,
    "h": 304.7
  },
  "luminance": 0.144
}

Semantic roles & 50–950 ramp

primary
#9040D5
secondary
#B6D899
accent
#E7418E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9040D5

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

Preview Lab → · Contrast checker → · Palette generator →

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