#F28EF2#F28EF2
#F28EF2 is a light, vivid purple. Relative luminance 0.446; OKLCH L 78.5% C 0.173 H 327.1°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #F28EF2 |
|---|---|
| RGB | rgb(242, 142, 242) |
| HSL | hsl(300, 79%, 75%) |
| HSV | hsv(300, 41%, 95%) |
| CMYK | cmyk(0%, 41.3%, 0%, 5.1%) |
| CIE-LAB | lab(72.65, 52.25, -34.37) |
| CIE-LCH | lch(72.65, 62.54, 326.66°) |
| OKLab | oklab(78.55% 0.1449 -0.0939) |
| OKLCH | oklch(78.55% 0.173 327.1) |
| XYZ | xyz(62.3168, 44.6370, 89.3205) |
| Luminance | 0.4463 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 2.56
Lavender Pink
#DD85D7
ΔE00 4.91
Purply Pink
#F075E6
ΔE00 4.99
Plum
#DDA0DD
ΔE00 7.10
Candy Pink
#FF63E9
ΔE00 7.42
Orchid
#DA70D6
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F28EF2 #8EF28E
analogous
#C08EF2 #F28EF2 #F28EC0
triadic
#F28EF2 #F2F28E #8EF2F2
tetradic
#F28EF2 #F2C08E #8EF28E #8EC0F2
square
#F28EF2 #F2C08E #8EF28E #8EC0F2
split-complementary
#F28EF2 #C0F28E #8EF2C0
monochromatic
#E520E5 #EC57EC #F28EF2 #F8C5F8 #FCE4FC
Accessibility & contrast
On white
2.12
#F28EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.93
#F28EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F28EF2
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F28EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F28EF2 | 1.00 | 2.12 | 9.93 | 9.93 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86AAF6
Deuteranopia (green-blind)
#A1B7EF
Tritanopia (blue-blind)
#F898B5
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #f28ef2; /* rgb */ color: rgb(242, 142, 242); /* oklch */ color: oklch(78.5% 0.173 327.1);
Tailwind
colors: {
custom: {
50: '#f8b1f6',
500: '#f28ef2',
950: '#000000',
},
}SCSS
$custom: #f28ef2; $custom-light: #f8b1f6; $custom-dark: #000000;
JSON
{
"hex": "#f28ef2",
"rgb": {
"r": 242,
"g": 142,
"b": 242
},
"hsl": {
"h": 300,
"s": 79.365,
"l": 75.294
},
"oklch": {
"l": 0.7855,
"c": 0.17266,
"h": 327.1
},
"luminance": 0.44634
}Semantic roles & 50–950 ramp
primary
#F28EF2
secondary
#D7F4D7
accent
#DC0A0A
background
#FFFBFF
surface
#FFF6FE
border
#D7D0D6
text
#171117
muted
#858085