#302c21
a deep, soft yellow · warm · closest name: black
RGB
48, 44, 33
HSL
44°, 19%, 16%
CMYK
0, 8, 31, 81
Luminance
0.0254
Every format
| HEX | #302c21 |
| RGB | rgb(48, 44, 33) |
| HSL | hsl(44, 19%, 16%) |
| CMYK | cmyk(0%, 8%, 31%, 81%) |
| LAB | lab(18.1 -0.4 7.8) |
| LCH | lch(18.1 7.8 92.9) |
| OKLCH | oklch(0.294 0.020 90.4) |
Copy-ready code
/* CSS */
color: #302c21;
background-color: #302c21;
/* Tailwind (arbitrary) */
class="text-[#302c21] bg-[#302c21]"
/* SCSS */
$brand: #302c21;
/* SwiftUI */
Color(red: 0.188, green: 0.173, blue: 0.129)
/* Android */
Color.parseColor("#302c21")Accessibility — WCAG contrast
Aa
#302c21 on white: 13.93:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#302c21 on black: 1.51:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green17.3%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta8.3%
Yellow31.3%
Key (black)81.2%
Color previews
#302c21 text on a black background
contrast 1.51:1
Card sample
#302c21 text on a white background
contrast 13.93:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #302c21;
Background color
Panel with #302c21 background
background-color: #302c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #302c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 44, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 44, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #302c21; background: linear-gradient(135deg, #302c21, #2A3021);