#f0baff
a pale, electric violet · warm · closest name: plum
RGB
240, 186, 255
HSL
287°, 100%, 87%
CMYK
6, 27, 0, 0
Luminance
0.6086
Every format
| HEX | #f0baff |
| RGB | rgb(240, 186, 255) |
| HSL | hsl(287, 100%, 87%) |
| CMYK | cmyk(6%, 27%, 0%, 0%) |
| LAB | lab(82.3 31.1 -26.6) |
| LCH | lch(82.3 40.9 319.5) |
| OKLCH | oklch(0.860 0.110 318.8) |
Copy-ready code
/* CSS */
color: #f0baff;
background-color: #f0baff;
/* Tailwind (arbitrary) */
class="text-[#f0baff] bg-[#f0baff]"
/* SCSS */
$brand: #f0baff;
/* SwiftUI */
Color(red: 0.941, green: 0.729, blue: 1.000)
/* Android */
Color.parseColor("#f0baff")Accessibility — WCAG contrast
Aa
#f0baff on white: 1.59:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#f0baff on black: 13.17:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red94.1%
Green72.9%
Blue100.0%
CMYK percentages
Cyan5.9%
Magenta27.1%
Yellow0.0%
Key (black)0.0%
Color previews
#f0baff text on a black background
contrast 13.17:1
Card sample
#f0baff text on a white background
contrast 1.59:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #f0baff;
Background color
Panel with #f0baff background
background-color: #f0baff;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #f0baff;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(240, 186, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 186, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0baff; background: linear-gradient(135deg, #f0baff, #FFBAE0);