#9240E4#9240E4

#9240E4 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.234 H 302.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9240E4
RGBrgb(146, 64, 228)
HSLhsl(270, 75%, 57%)
HSVhsv(270, 72%, 89%)
CMYKcmyk(36%, 71.9%, 0%, 10.6%)
CIE-LABlab(46.15, 63.57, -69.39)
CIE-LCHlch(46.15, 94.11, 312.49°)
OKLaboklab(56.42% 0.1242 -0.1978)
OKLCHoklch(56.42% 0.234 302.1)
XYZxyz(27.6877, 15.3791, 74.8935)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9240E4 #92E440
analogous
#4040E4 #9240E4 #E440E4
triadic
#9240E4 #E49240 #40E492
tetradic
#9240E4 #E44040 #92E440 #40E4E4
square
#9240E4 #E44040 #92E440 #40E4E4
split-complementary
#9240E4 #E4E440 #40E440
monochromatic
#551595 #731DCA #9240E4 #B176EC #CFABF3

Accessibility & contrast

On white

5.15
#9240E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9240E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9240E4
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9240E4#FFFFFF#000000##FFFFFF
##9240E41.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#81688E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9240e4;
/* rgb */ color: rgb(146, 64, 228);
/* oklch */ color: oklch(56.4% 0.234 302.1);
Tailwind
colors: {
  custom: {
    50: '#b87cee',
    500: '#9240e4',
    950: '#000000',
  },
}
SCSS
$custom: #9240e4;
$custom-light: #b87cee;
$custom-dark: #000000;
JSON
{
  "hex": "#9240e4",
  "rgb": {
    "r": 146,
    "g": 64,
    "b": 228
  },
  "hsl": {
    "h": 270,
    "s": 75.229,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56419,
    "c": 0.23356,
    "h": 302.1
  },
  "luminance": 0.15379
}

Semantic roles & 50–950 ramp

primary
#9240E4
secondary
#C0E19F
accent
#F23694
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #9240E4

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

Preview Lab → · Contrast checker → · Palette generator →

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