#0C021C
Dark Purple
HEX
RGB
HSL
About #0C021C Dark Purple
#0C021C is a dark purple color. In the RGB color model, it is composed of 12 red, 2 green, and 28 blue. In the HSL color space, it has a hue of 263°, saturation of 87%, and lightness of 6%.
This color has a low lightness value, making it a dark color great for text and bold accents. With high saturation, it appears vibrant and eye-catching.
CSS Code & Gradients
Use #0C021C in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
263°
Hue
87%
Saturation
6%
Lightness
Dark Purple
Color Harmonies
Colors that work well with #0C021C based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #0C021C against white and black backgrounds.
Aa#0C021C on White
Contrast Ratio20.17:1
AA ✓AA Large ✓AAA ✓
Aa#0C021C on Black
Contrast Ratio1.04:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #0C021C across different color formats.
| Format | Value |
|---|---|
| HEX | #0C021C |
| RGB | rgb(12, 2, 28) |
| HSL | hsl(263, 87%, 6%) |
| RGB Decimal | 12, 2, 28 |
| RGB Percent | 4.7%, 0.8%, 11.0% |
| CMYK (approx.) | 57%, 93%, 0%, 89% |
Related Palettes
12 palettes using #0C021C or similar colors