#5A3CD2

#5a3cd2 ≈ Ocean Blue

  • violet
  • Lightness: medium
  • Saturation: strong
  • Cool

#5a3cd2 is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 35.29% red, 23.53% green and 82.35% blue; printed in CMYK it uses 57.14% cyan, 71.43% magenta, 0% yellow and 17.65% black. Its hue angle is 252°, with 62.5% saturation and 52.94% 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 6.97:1 (WCAG AA). The closest named color is Ocean Blue (#4f42b5), ΔE 4.57.

Description generated from the measured properties of this color.

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

Readable text 6.97:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.01:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #595959 ≈ 0.003% of males
Achromatomaly #5a4f99 ≈ 0.001% of males
Protanopia #005ed6 ≈ 1.01% of males
Deuteranopia #0054cf ≈ 1.27% of males
Tritanopia #196583 ≈ 0.0001% of males
Protanomaly #0052d5 ≈ 1.08% of males
Deuteranomaly #004cd0 ≈ 4.63% of males
Tritanomaly #3d57a9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5a3cd2 {
  color: #5a3cd2;
}
Background
.bg-5a3cd2 {
  background-color: #5a3cd2;
  color: #ffffff;
}
Border
.border-5a3cd2 {
  border: 2px solid #5a3cd2;
}
CSS variables
:root {
  --color-primary: #5a3cd2;
  --color-primary-rgb: 90 60 210;
  --color-primary-hsl: 252 63% 53%;
}
Gradient
.gradient-5a3cd2 {
  background: linear-gradient(135deg, #5a3cd2, #a53cd2);
}
Colored shadow
.shadow-5a3cd2 {
  box-shadow: 0 8px 24px rgb(90 60 210 / 0.35);
}

Ocean Blue
#5a3cd2  rgb(90, 60, 210)  hsl(252, 63%, 53%)  Ocean Blue
#b4d23c  rgb(180, 210, 60)  hsl(72, 63%, 53%)  June Bud
#d25a3c  rgb(210, 90, 60)  hsl(12, 63%, 53%)  Cinnabar
#3cd25a  rgb(60, 210, 90)  hsl(132, 63%, 53%)  Malachite