#502FAB

#502fab ≈ Ocean Blue

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

#502fab is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 31.37% red, 18.43% green and 67.06% blue; printed in CMYK it uses 53.22% cyan, 72.51% magenta, 0% yellow and 32.94% black. Its hue angle is 255.97°, with 56.88% saturation and 42.75% 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 8.99:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 5.08.

Description generated from the measured properties of this color.

Conversions of #502fab into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#663399
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0668

Readable text 8.99:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.34:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #494949 ≈ 0.003% of males
Achromatomaly #4c407c ≈ 0.001% of males
Protanopia #004caf ≈ 1.01% of males
Deuteranopia #0046a9 ≈ 1.27% of males
Tritanopia #2d506a ≈ 0.0001% of males
Protanomaly #1542ad ≈ 1.08% of males
Deuteranomaly #173eaa ≈ 4.63% of males
Tritanomaly #3e4589 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-502fab {
  color: #502fab;
}
Background
.bg-502fab {
  background-color: #502fab;
  color: #ffffff;
}
Border
.border-502fab {
  border: 2px solid #502fab;
}
CSS variables
:root {
  --color-primary: #502fab;
  --color-primary-rgb: 80 47 171;
  --color-primary-hsl: 256 57% 43%;
}
Gradient
.gradient-502fab {
  background: linear-gradient(135deg, #502fab, #8e2fab);
}
Colored shadow
.shadow-502fab {
  box-shadow: 0 8px 24px rgb(80 47 171 / 0.35);
}

Ocean Blue
#502fab  rgb(80, 47, 171)  hsl(256, 57%, 43%)  Ocean Blue
#8aab2f  rgb(138, 171, 47)  hsl(76, 57%, 43%)  Apple Green
#ab502f  rgb(171, 80, 47)  hsl(16, 57%, 43%)  Sienna
#2fab50  rgb(47, 171, 80)  hsl(136, 57%, 43%)  Medium Sea Green