Skip to content

#0c0126

a deep, electric violet · warm · closest name: black

RGB
12, 1, 38
HSL
258°, 95%, 8%
CMYK
68, 97, 0, 85
Luminance
0.0024

Every format

HEX#0c0126
RGBrgb(12, 1, 38)
HSLhsl(258, 95%, 8%)
CMYKcmyk(68%, 97%, 0%, 85%)
LABlab(2.2 11.7 -20.1)
LCHlch(2.2 23.3 300.1)
OKLCHoklch(0.144 0.076 290.6)

Copy-ready code

/* CSS */
color: #0c0126;
background-color: #0c0126;
/* Tailwind (arbitrary) */
class="text-[#0c0126] bg-[#0c0126]"
/* SCSS */
$brand: #0c0126;
/* SwiftUI */
Color(red: 0.047, green: 0.004, blue: 0.149)
/* Android */
Color.parseColor("#0c0126")

Accessibility — WCAG contrast

Aa
#0c0126 on white: 20.04:1
AA ✓ pass · AA-large · AAA
Aa
#0c0126 on black: 1.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green0.4%
Blue14.9%

CMYK percentages

Cyan68.4%
Magenta97.4%
Yellow0.0%
Key (black)85.1%

Color previews

#0c0126 text on a black background

contrast 1.05:1

Card sample

#0c0126 text on a white background

contrast 20.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0c0126;
Background color
Panel with #0c0126 background
background-color: #0c0126;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0c0126;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(12, 1, 38, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 1, 38, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c0126;
background: linear-gradient(135deg, #0c0126, #240126);

Monochromatic scale

Palettes built from #0c0126

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c0126 in the Color Lab