#6F51BA

#6f51ba ≈ Royal Purple

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#6f51ba is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 43.53% red, 31.76% green and 72.94% blue; printed in CMYK it uses 40.32% cyan, 56.45% magenta, 0% yellow and 27.06% black. Its hue angle is 257.14°, with 43.21% saturation and 52.35% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and brand accents. White text on this color reaches a contrast ratio of 5.9:1 (WCAG AA). The closest named color is Royal Purple (#7851a9), ΔE 4.06.

Description generated from the measured properties of this color.

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

Readable text 5.9:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.56:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #646464 ≈ 0.003% of males
Achromatomaly #695d8f ≈ 0.001% of males
Protanopia #1a66be ≈ 1.01% of males
Deuteranopia #2462b8 ≈ 1.27% of males
Tritanopia #5b677e ≈ 0.0001% of males
Protanomaly #4b5ebc ≈ 1.08% of males
Deuteranomaly #4d5cb9 ≈ 4.63% of males
Tritanomaly #645f99 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-6f51ba {
  color: #6f51ba;
}
Background
.bg-6f51ba {
  background-color: #6f51ba;
  color: #ffffff;
}
Border
.border-6f51ba {
  border: 2px solid #6f51ba;
}
CSS variables
:root {
  --color-primary: #6f51ba;
  --color-primary-rgb: 111 81 186;
  --color-primary-hsl: 257 43% 52%;
}
Gradient
.gradient-6f51ba {
  background: linear-gradient(135deg, #6f51ba, #a351ba);
}
Colored shadow
.shadow-6f51ba {
  box-shadow: 0 8px 24px rgb(111 81 186 / 0.35);
}

Royal Purple
#6f51ba  rgb(111, 81, 186)  hsl(257, 43%, 52%)  Royal Purple
#9cba51  rgb(156, 186, 81)  hsl(77, 43%, 52%)  Apple Green
#ba6f51  rgb(186, 111, 81)  hsl(17, 43%, 52%)  Cafe au Lait
#51ba6f  rgb(81, 186, 111)  hsl(137, 43%, 52%)  Medium Sea Green