#9040E5#9040E5

#9040E5 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.3% C 0.234 H 301.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9040E5
RGBrgb(144, 64, 229)
HSLhsl(269, 76%, 57%)
HSVhsv(269, 72%, 90%)
CMYKcmyk(37.1%, 72.1%, 0%, 10.2%)
CIE-LABlab(45.98, 63.45, -70.25)
CIE-LCHlch(45.98, 94.66, 312.09°)
OKLaboklab(56.27% 0.1213 -0.2004)
OKLCHoklch(56.27% 0.234 301.2)
XYZxyz(27.4744, 15.2531, 75.6102)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040E5 #95E540
analogous
#4042E5 #9040E5 #E340E5
triadic
#9040E5 #E59040 #40E590
tetradic
#9040E5 #E54042 #95E540 #40E5E3
square
#9040E5 #E54042 #95E540 #40E5E3
split-complementary
#9040E5 #E5E340 #42E540
monochromatic
#531496 #711CCC #9040E5 #AF76EC #CFACF4

Accessibility & contrast

On white

5.18
#9040E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9040E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040E5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040E5#FFFFFF#000000##FFFFFF
##9040E51.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#006CE2
Tritanopia (blue-blind)
#7D698F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9040e5;
/* rgb */ color: rgb(144, 64, 229);
/* oklch */ color: oklch(56.3% 0.234 301.2);
Tailwind
colors: {
  custom: {
    50: '#b77cee',
    500: '#9040e5',
    950: '#000000',
  },
}
SCSS
$custom: #9040e5;
$custom-light: #b77cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9040e5",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 229
  },
  "hsl": {
    "h": 269.091,
    "s": 76.037,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56268,
    "c": 0.23423,
    "h": 301.2
  },
  "luminance": 0.15253
}

Semantic roles & 50–950 ramp

primary
#9040E5
secondary
#C1E29F
accent
#F33597
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A17
muted
#817C85

Preview Lab

Preview with #9040E5

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

Preview Lab → · Contrast checker → · Palette generator →

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