#512B8A

#512b8a ≈ Rebecca Purple

  • violet
  • Lightness: low
  • Saturation: moderate
  • Cool

#512b8a is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 31.76% red, 16.86% green and 54.12% blue; printed in CMYK it uses 41.3% cyan, 68.84% magenta, 0% yellow and 45.88% black. Its hue angle is 264°, with 52.49% saturation and 35.49% 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 10.18:1 (WCAG AAA). The closest named color is Rebecca Purple (#663399), ΔE 4.49.

Description generated from the measured properties of this color.

Conversions of #512b8a 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.0531

Readable text 10.18:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.06:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #414141 ≈ 0.003% of males
Achromatomaly #483966 ≈ 0.001% of males
Protanopia #00418d ≈ 1.01% of males
Deuteranopia #004088 ≈ 1.27% of males
Tritanopia #434157 ≈ 0.0001% of males
Protanomaly #2b3a8c ≈ 1.08% of males
Deuteranomaly #2f3989 ≈ 4.63% of males
Tritanomaly #493a6f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-512b8a {
  color: #512b8a;
}
Background
.bg-512b8a {
  background-color: #512b8a;
  color: #ffffff;
}
Border
.border-512b8a {
  border: 2px solid #512b8a;
}
CSS variables
:root {
  --color-primary: #512b8a;
  --color-primary-rgb: 81 43 138;
  --color-primary-hsl: 264 52% 35%;
}
Gradient
.gradient-512b8a {
  background: linear-gradient(135deg, #512b8a, #812b8a);
}
Colored shadow
.shadow-512b8a {
  box-shadow: 0 8px 24px rgb(81 43 138 / 0.35);
}

Rebecca Purple
#512b8a  rgb(81, 43, 138)  hsl(264, 52%, 35%)  Rebecca Purple
#648a2b  rgb(100, 138, 43)  hsl(84, 52%, 35%)  Olive Drab
#8a512b  rgb(138, 81, 43)  hsl(24, 52%, 35%)  Russet
#2b8a51  rgb(43, 138, 81)  hsl(144, 52%, 35%)  Sea Green