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