#645172 color
The hex color #645172 is a grayish violet.
In the RGB color model it is made of 39.2% red, 31.8% green and 44.7% blue (100, 81, 114).
Its hue angle is 275°, with 17% saturation and 38% lightness. For print, the CMYK equivalent is 12% cyan, 29% magenta, 0% yellow and 55% black.
The closest named color is Your Majesty (#61496E), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 7.09:1).
#645172 color codes
| HEX | #645172 | |
|---|---|---|
| RGB | rgb(100, 81, 114) | |
| RGB percent | rgb(39.2%, 31.8%, 44.7%) | |
| HSL | hsl(275, 17%, 38%) | |
| HSV / HSB | hsv(275, 29%, 45%) | |
| CMYK | cmyk(12%, 29%, 0%, 55%) | |
| CIE LAB | lab(37.5, 14.79, -15.91) | |
| CIE LCH | lch(37.5, 21.73, 312.9) | |
| CIE XYZ | xyz(11.235, 9.809, 17.218) | |
| Decimal | 6574450 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #645172, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #645172 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.96:1 | Fail | Fail | Fail |
| Sample text | 7.09:1 | Pass | Pass | Pass |
| #645172 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.09:1 | Pass | Pass | Pass |
| Sample text | 2.96:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #645172 looks to people with the most common types of color vision deficiency.
#4c5773Protanopia
no red cones#505971Deuteranopia
no green cones#63555dTritanopia
no blue cones#585858Achromatopsia
no color vision
CSS examples
.background { background-color: #645172; }
.text { color: #645172; }
.border { border: 2px solid #645172; }
.transparent { background-color: rgb(100 81 114 / 50%); }
.gradient { background: linear-gradient(to right, #645172, #725170); }
Similar colors
#61496eYour Majesty#675a75Plummy#655883Berry Jam#57446aHaunted Candelabra#674876Neon Violet#544563Nightly Walk#614a7bRoyal Robe#78587dDr Who
Closest common color name: Eggplant.
Questions
- What color is #645172?
- #645172 is a grayish violet, closest to the named color Your Majesty. It belongs to the purple family of colors.
- What is the RGB value of #645172?
- The RGB value is 100, 81, 114: 100 red, 81 green and 114 blue on a 0 to 255 scale.
- What is the complementary color of #645172?
- The complementary color is #5F7251, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #645172?
- White text. Black text has a contrast ratio of 2.96:1 and white text 7.09:1. WCAG asks for at least 4.5:1 for normal text.