Skip to main content

#9787F3 Medium Purple

The nearest named color to #9787F3 is Medium Purple (#9370DB).

#9787F3

Medium Purple

What are the RGB, HSL, OKLCH and CMYK values of #9787F3?

HEX
#9787F3
RGB
rgb(151, 135, 243)
HSL
hsl(249, 82%, 74%)
OKLCH
oklch(68.5% 0.156 288)
CMYK
38, 44, 0, 5

#9787F3 has a contrast ratio of 2.97:1 against white and 7.08:1 against black, so black is the better background for text in this color and dark 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 → #9787F3
#9787F3
Same color
White
3.0Fail
Near-black
5.9AA

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

  • Near-black on #9787F3 · 5.9:1

Tints and shades of #9787F3

Same hue and chroma in OKLCH, lighter to darker.

  1. #F4F4FF
  2. #D3CFFF
  3. #B3AAFF
  4. #9787F3
  5. #7A68D1
  6. #5F4BB1
  7. #462E92
  8. #300B73
  9. #190045

Colors that go with #9787F3

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. Mauve, #DCACF7 and Dark Turquoise, #3DD2EC become hard to tell apart — don't rely on color alone to separate them.

Export

Copy-paste code, or download the swatches.

:root {
  --medium-purple-1: #9787F3; /* Medium Purple */
}

Palettes, gradients and meshes with #9787F3

Items using this color or one perceptually close to it, closest first.

Palettes (3)

Gradients (2)

Mesh gradients (4)