#42335C color
The hex color #42335C is a dark, desaturated violet.
In the RGB color model it is made of 25.9% red, 20% green and 36.1% blue (66, 51, 92).
Its hue angle is 262°, with 29% saturation and 28% lightness. For print, the CMYK equivalent is 28% cyan, 45% magenta, 0% yellow and 64% black.
The closest named color is Midnight Pie (#372D52), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.29:1).
#42335C color codes
| HEX | #42335C | |
|---|---|---|
| RGB | rgb(66, 51, 92) | |
| RGB percent | rgb(25.9%, 20%, 36.1%) | |
| HSL | hsl(262, 29%, 28%) | |
| HSV / HSB | hsv(262, 45%, 36%) | |
| CMYK | cmyk(28%, 45%, 0%, 64%) | |
| CIE LAB | lab(24.63, 16.61, -22.15) | |
| CIE LCH | lch(24.63, 27.69, 306.87) | |
| CIE XYZ | xyz(5.362, 4.299, 10.67) | |
| Decimal | 4338524 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #42335C, 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 #42335C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.86:1 | Fail | Fail | Fail |
| Sample text | 11.29:1 | Pass | Pass | Pass |
| #42335C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.29:1 | Pass | Pass | Pass |
| Sample text | 1.86: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 #42335C looks to people with the most common types of color vision deficiency.
#283a5eProtanopia
no red cones#2b3a5bDeuteranopia
no green cones#3d3a43Tritanopia
no blue cones#3a3a3aAchromatopsia
no color vision
CSS examples
.background { background-color: #42335c; }
.text { color: #42335c; }
.border { border: 2px solid #42335c; }
.transparent { background-color: rgb(66 51 92 / 50%); }
.gradient { background: linear-gradient(to right, #42335c, #57335c); }
Similar colors
#372d52Midnight Pie#4a3b6aMeteorite#3c2f4eSanctum of Shadows#4f325eRoyal Crown#322c56Purple Noir#48295bAcai#372354Stormy Night#3f354fMaharaja
Closest common color name: Dark Purple.
Questions
- What color is #42335C?
- #42335C is a dark, desaturated violet, closest to the named color Midnight Pie. It belongs to the purple family of colors.
- What is the RGB value of #42335C?
- The RGB value is 66, 51, 92: 66 red, 51 green and 92 blue on a 0 to 255 scale.
- What is the complementary color of #42335C?
- The complementary color is #4D5C33, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #42335C?
- White text. Black text has a contrast ratio of 1.86:1 and white text 11.29:1. WCAG asks for at least 4.5:1 for normal text.