#9040E4#9040E4

#9040E4 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.2% C 0.233 H 301.4°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9040E4
RGBrgb(144, 64, 228)
HSLhsl(269, 75%, 57%)
HSVhsv(269, 72%, 89%)
CMYKcmyk(36.8%, 71.9%, 0%, 10.6%)
CIE-LABlab(45.90, 63.21, -69.80)
CIE-LCHlch(45.90, 94.17, 312.16°)
OKLaboklab(56.19% 0.1215 -0.1991)
OKLCHoklch(56.19% 0.233 301.4)
XYZxyz(27.3352, 15.1974, 74.8770)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040E4 #94E440
analogous
#4042E4 #9040E4 #E240E4
triadic
#9040E4 #E49040 #40E490
tetradic
#9040E4 #E44042 #94E440 #40E4E2
square
#9040E4 #E44042 #94E440 #40E4E2
split-complementary
#9040E4 #E4E240 #42E440
monochromatic
#531595 #711DCA #9040E4 #AF76EC #CEABF3

Accessibility & contrast

On white

5.20
#9040E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9040E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040E4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040E4#FFFFFF#000000##FFFFFF
##9040E41.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#7E698E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9040e4;
/* rgb */ color: rgb(144, 64, 228);
/* oklch */ color: oklch(56.2% 0.233 301.4);
Tailwind
colors: {
  custom: {
    50: '#b77cee',
    500: '#9040e4',
    950: '#000000',
  },
}
SCSS
$custom: #9040e4;
$custom-light: #b77cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9040e4",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 228
  },
  "hsl": {
    "h": 269.268,
    "s": 75.229,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56191,
    "c": 0.23321,
    "h": 301.4
  },
  "luminance": 0.15198
}

Semantic roles & 50–950 ramp

primary
#9040E4
secondary
#C1E19F
accent
#F23696
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9040E4

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

Preview Lab → · Contrast checker → · Palette generator →

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