#F28DF2#F28DF2

#F28DF2 is a light, vivid purple. Relative luminance 0.443; OKLCH L 78.4% C 0.174 H 327.1°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#F28DF2
RGBrgb(242, 141, 242)
HSLhsl(300, 80%, 75%)
HSVhsv(300, 42%, 95%)
CMYKcmyk(0%, 41.7%, 0%, 5.1%)
CIE-LABlab(72.46, 52.75, -34.68)
CIE-LCHlch(72.46, 63.13, 326.68°)
OKLaboklab(78.4% 0.1463 -0.0947)
OKLCHoklch(78.4% 0.174 327.1)
XYZxyz(62.1687, 44.3408, 89.2711)
Luminance0.4434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28DF2 #8DF28D
analogous
#BF8DF2 #F28DF2 #F28DBF
triadic
#F28DF2 #F2F28D #8DF2F2
tetradic
#F28DF2 #F2BF8D #8DF28D #8DBFF2
square
#F28DF2 #F2BF8D #8DF28D #8DBFF2
split-complementary
#F28DF2 #BFF28D #8DF2BF
monochromatic
#E51FE5 #EC56EC #F28DF2 #F8C4F8 #FCE4FC

Accessibility & contrast

On white

2.13
#F28DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#F28DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28DF2
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28DF2#FFFFFF#000000##000000
##F28DF21.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85A9F6
Deuteranopia (green-blind)
#A0B6EF
Tritanopia (blue-blind)
#F897B4
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #f28df2;
/* rgb */ color: rgb(242, 141, 242);
/* oklch */ color: oklch(78.4% 0.174 327.1);
Tailwind
colors: {
  custom: {
    50: '#f8b1f6',
    500: '#f28df2',
    950: '#000000',
  },
}
SCSS
$custom: #f28df2;
$custom-light: #f8b1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#f28df2",
  "rgb": {
    "r": 242,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 300,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.78403,
    "c": 0.17431,
    "h": 327.1
  },
  "luminance": 0.44338
}

Semantic roles & 50–950 ramp

primary
#F28DF2
secondary
#D7F4D7
accent
#DC0A0A
background
#FFFBFF
surface
#FFF6FE
border
#D7D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #F28DF2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F28DF2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva