#9040E3#9040E3

#9040E3 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 56.1% C 0.232 H 301.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9040E3
RGBrgb(144, 64, 227)
HSLhsl(269, 74%, 57%)
HSVhsv(269, 72%, 89%)
CMYKcmyk(36.6%, 71.8%, 0%, 11%)
CIE-LABlab(45.83, 62.98, -69.36)
CIE-LCHlch(45.83, 93.69, 312.24°)
OKLaboklab(56.12% 0.1217 -0.1978)
OKLCHoklch(56.12% 0.232 301.6)
XYZxyz(27.1968, 15.1420, 74.1480)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040E3 #93E340
analogous
#4042E3 #9040E3 #E240E3
triadic
#9040E3 #E39040 #40E390
tetradic
#9040E3 #E34042 #93E340 #40E3E2
square
#9040E3 #E34042 #93E340 #40E3E2
split-complementary
#9040E3 #E3E240 #42E340
monochromatic
#531693 #711DC8 #9040E3 #AF75EB #CEABF3

Accessibility & contrast

On white

5.21
#9040E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9040E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040E3
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040E3#FFFFFF#000000##FFFFFF
##9040E31.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE8
Deuteranopia (green-blind)
#006CE0
Tritanopia (blue-blind)
#7E688E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9040e3;
/* rgb */ color: rgb(144, 64, 227);
/* oklch */ color: oklch(56.1% 0.232 301.6);
Tailwind
colors: {
  custom: {
    50: '#b77ced',
    500: '#9040e3',
    950: '#000000',
  },
}
SCSS
$custom: #9040e3;
$custom-light: #b77ced;
$custom-dark: #000000;
JSON
{
  "hex": "#9040e3",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 269.448,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56115,
    "c": 0.23219,
    "h": 301.6
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#9040E3
secondary
#C0E19E
accent
#F13796
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9040E3

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

Preview Lab → · Contrast checker → · Palette generator →

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