#312c21
a deep, soft yellow · warm · closest name: black
RGB
49, 44, 33
HSL
41°, 20%, 16%
CMYK
0, 10, 33, 81
Luminance
0.0256
Every format
| HEX | #312c21 |
| RGB | rgb(49, 44, 33) |
| HSL | hsl(41, 20%, 16%) |
| CMYK | cmyk(0%, 10%, 33%, 81%) |
| LAB | lab(18.2 0.1 8.0) |
| LCH | lch(18.2 8.0 89.4) |
| OKLCH | oklch(0.295 0.020 86.4) |
Copy-ready code
/* CSS */
color: #312c21;
background-color: #312c21;
/* Tailwind (arbitrary) */
class="text-[#312c21] bg-[#312c21]"
/* SCSS */
$brand: #312c21;
/* SwiftUI */
Color(red: 0.192, green: 0.173, blue: 0.129)
/* Android */
Color.parseColor("#312c21")Accessibility — WCAG contrast
Aa
#312c21 on white: 13.88:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#312c21 on black: 1.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green17.3%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta10.2%
Yellow32.7%
Key (black)80.8%
Color previews
#312c21 text on a black background
contrast 1.51:1
Card sample
#312c21 text on a white background
contrast 13.88:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #312c21;
Background color
Panel with #312c21 background
background-color: #312c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #312c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 44, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 44, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #312c21; background: linear-gradient(135deg, #312c21, #2B3121);