#40116D color
The hex color #40116D is a dark, moderate violet.
In the RGB color model it is made of 25.1% red, 6.7% green and 42.7% blue (64, 17, 109).
Its hue angle is 271°, with 73% saturation and 25% lightness. For print, the CMYK equivalent is 41% cyan, 84% magenta, 0% yellow and 57% black.
The closest named color is Infinite Inkwell (#2F1064), a difference of 3.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.82:1).
#40116D color codes
| HEX | #40116D | |
|---|---|---|
| RGB | rgb(64, 17, 109) | |
| RGB percent | rgb(25.1%, 6.7%, 42.7%) | |
| HSL | hsl(271, 73%, 25%) | |
| HSV / HSB | hsv(271, 84%, 43%) | |
| CMYK | cmyk(41%, 84%, 0%, 57%) | |
| CIE LAB | lab(18.34, 40.24, -43.39) | |
| CIE LCH | lch(18.34, 59.18, 312.85) | |
| CIE XYZ | xyz(5.074, 2.595, 14.699) | |
| Decimal | 4198765 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40116D, 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 #40116D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.52:1 | Fail | Fail | Fail |
| Sample text | 13.82:1 | Pass | Pass | Pass |
| #40116D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.82:1 | Pass | Pass | Pass |
| Sample text | 1.52: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 #40116D looks to people with the most common types of color vision deficiency.
#002c6fProtanopia
no red cones#002c6bDeuteranopia
no green cones#362b40Tritanopia
no blue cones#2d2d2dAchromatopsia
no color vision
CSS examples
.background { background-color: #40116d; }
.text { color: #40116d; }
.border { border: 2px solid #40116d; }
.transparent { background-color: rgb(64 17 109 / 50%); }
.gradient { background: linear-gradient(to right, #40116d, #6d116c); }
Similar colors
#2f1064Infinite Inkwell#37115cWicked Purple#3a1f76Explorer of the Galaxies#2d135fVoldemort#330077Galactic Federation#4b0082Indigo#4b0183Indigo Static#540d6eVelvet Vortex
Questions
- What color is #40116D?
- #40116D is a dark, moderate violet, closest to the named color Infinite Inkwell. It belongs to the purple family of colors.
- What is the RGB value of #40116D?
- The RGB value is 64, 17, 109: 64 red, 17 green and 109 blue on a 0 to 255 scale.
- What is the complementary color of #40116D?
- The complementary color is #3E6D11, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40116D?
- White text. Black text has a contrast ratio of 1.52:1 and white text 13.82:1. WCAG asks for at least 4.5:1 for normal text.