#f08080
a light, electric red · warm · closest name: salmon
RGB
240, 128, 128
HSL
0°, 79%, 72%
CMYK
0, 47, 47, 6
Luminance
0.3552
Every format
| HEX | #f08080 |
| RGB | rgb(240, 128, 128) |
| HSL | hsl(0, 79%, 72%) |
| CMYK | cmyk(0%, 47%, 47%, 6%) |
| LAB | lab(66.2 42.8 19.6) |
| LCH | lch(66.2 47.1 24.6) |
| OKLCH | oklch(0.725 0.138 21.0) |
Copy-ready code
/* CSS */
color: #f08080;
background-color: #f08080;
/* Tailwind (arbitrary) */
class="text-[#f08080] bg-[#f08080]"
/* SCSS */
$brand: #f08080;
/* SwiftUI */
Color(red: 0.941, green: 0.502, blue: 0.502)
/* Android */
Color.parseColor("#f08080")Accessibility — WCAG contrast
Aa
#f08080 on white: 2.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f08080 on black: 8.10:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green50.2%
Blue50.2%
CMYK percentages
Cyan0.0%
Magenta46.7%
Yellow46.7%
Key (black)5.9%
Color previews
#f08080 text on a black background
contrast 8.10:1
Card sample
#f08080 text on a white background
contrast 2.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f08080;
Background color
Panel with #f08080 background
background-color: #f08080;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f08080;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 128, 128, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 128, 128, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f08080; background: linear-gradient(135deg, #f08080, #F0CB80);