#f0faff
a pale, electric blue · cool · closest name: white
RGB
240, 250, 255
HSL
200°, 100%, 97%
CMYK
6, 2, 0, 0
Luminance
0.9412
Every format
| HEX | #f0faff |
| RGB | rgb(240, 250, 255) |
| HSL | hsl(200, 100%, 97%) |
| CMYK | cmyk(6%, 2%, 0%, 0%) |
| LAB | lab(97.7 -2.4 -3.5) |
| LCH | lch(97.7 4.3 236.2) |
| OKLCH | oklch(0.979 0.013 228.9) |
Copy-ready code
/* CSS */
color: #f0faff;
background-color: #f0faff;
/* Tailwind (arbitrary) */
class="text-[#f0faff] bg-[#f0faff]"
/* SCSS */
$brand: #f0faff;
/* SwiftUI */
Color(red: 0.941, green: 0.980, blue: 1.000)
/* Android */
Color.parseColor("#f0faff")Accessibility — WCAG contrast
Aa
#f0faff on white: 1.06:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0faff on black: 19.82:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green98.0%
Blue100.0%
CMYK percentages
Cyan5.9%
Magenta2.0%
Yellow0.0%
Key (black)0.0%
Color previews
#f0faff text on a black background
contrast 19.82:1
Card sample
#f0faff text on a white background
contrast 1.06:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0faff;
Background color
Panel with #f0faff background
background-color: #f0faff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0faff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 250, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 250, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0faff; background: linear-gradient(135deg, #f0faff, #F0F0FF);