Skip to main content

#9940F4 Blue Violet

The nearest named color to #9940F4 is Blue Violet (#8A2BE2).

#9940F4

Blue Violet

What are the RGB, HSL, OKLCH and CMYK values of #9940F4?

HEX
#9940F4
RGB
rgb(153, 64, 244)
HSL
hsl(270, 89%, 60%)
OKLCH
oklch(58.4% 0.251 301)
CMYK
37, 74, 0, 4

#9940F4 has a contrast ratio of 4.78:1 against white and 4.39:1 against black, so white is the better background for text in this color and light text reads best on it.

Contrast checker

Text color (rows) on background (columns), scored against WCAG 2.2. White and near-black text on this color.

WCAG contrast ratio for each text and background color combination
Text ↓ / Bg → #9940F4
#9940F4
Same color
White
4.8AA
Near-black
3.7AA18

AAA ≥ 7:1 · AA ≥ 4.5:1 body text· AA18 ≥ 3:1 large text (18pt, or 14pt bold) only

Text that works on each color

  • White on #9940F4 · 4.8:1

Tints and shades of #9940F4

Same hue and chroma in OKLCH, lighter to darker.

  1. #F7F3FF
  2. #DECBFF
  3. #C6A1FF
  4. #B073FF
  5. #9940F4
  6. #7D10D3
  7. #5D00A0
  8. #3D006C
  9. #20003D

Colors that go with #9940F4

Six harmony rules built from this color. Open any in the Studio.

Color blindness check

About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.

Typical
Deuteranopia

No green cones — the most common form. Blue Violet, #9940F4 and Royal Blue, #0C72D6 become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --blue-violet-1: #9940F4; /* Blue Violet */
}

Palettes, gradients and meshes with #9940F4

Items using this color or one perceptually close to it, closest first (up to 24 palettes and 12 each of gradients and meshes).

Palettes (3)

Gradients (3)

Mesh gradients (4)