#787EF2

#787ef2 ≈ Medium Slate Blue

  • blue
  • Lightness: high
  • Saturation: moderate
  • Cool

#787ef2 is a color from the blue family, with high lightness and moderate saturation. In the RGB model it is made of 47.06% red, 49.41% green and 94.9% blue; printed in CMYK it uses 50.41% cyan, 47.93% magenta, 0% yellow and 5.1% black. Its hue angle is 237.05°, with 82.43% saturation and 70.98% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and call-to-action buttons. Black text on this color reaches a contrast ratio of 6.07:1 (WCAG AA). The closest named color is Medium Slate Blue (#7b68ee), ΔE 6.98.

Description generated from the measured properties of this color.

Conversions of #787ef2 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#6666ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.2533

Readable text 3.46:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 6.07:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #8a8a8a ≈ 0.003% of males
Achromatomaly #8385bd ≈ 0.001% of males
Protanopia #498ff6 ≈ 1.01% of males
Deuteranopia #3d85ef ≈ 1.27% of males
Tritanopia #4697ac ≈ 0.0001% of males
Protanomaly #5f88f5 ≈ 1.08% of males
Deuteranomaly #5a82f0 ≈ 4.63% of males
Tritanomaly #5e8ecc ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-787ef2 {
  color: #787ef2;
}
Background
.bg-787ef2 {
  background-color: #787ef2;
  color: #000000;
}
Border
.border-787ef2 {
  border: 2px solid #787ef2;
}
CSS variables
:root {
  --color-primary: #787ef2;
  --color-primary-rgb: 120 126 242;
  --color-primary-hsl: 237 82% 71%;
}
Gradient
.gradient-787ef2 {
  background: linear-gradient(135deg, #787ef2, #af78f2);
}
Colored shadow
.shadow-787ef2 {
  box-shadow: 0 8px 24px rgb(120 126 242 / 0.35);
}

Medium Slate Blue
#787ef2  rgb(120, 126, 242)  hsl(237, 82%, 71%)  Medium Slate Blue
#f2ec78  rgb(242, 236, 120)  hsl(57, 82%, 71%)  Khaki
#f2787e  rgb(242, 120, 126)  hsl(357, 82%, 71%)  Light Coral
#7ef278  rgb(126, 242, 120)  hsl(117, 82%, 71%)  Light Green