#F28CFB#F28CFB

#F28CFB is a light, vivid purple. Relative luminance 0.446; OKLCH L 78.7% C 0.184 H 324.1°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#F28CFB
RGBrgb(242, 140, 251)
HSLhsl(295, 93%, 77%)
HSVhsv(295, 44%, 98%)
CMYKcmyk(3.6%, 44.2%, 0%, 1.6%)
CIE-LABlab(72.63, 54.87, -39.31)
CIE-LCHlch(72.63, 67.50, 324.38°)
OKLaboklab(78.65% 0.1494 -0.108)
OKLCHoklch(78.65% 0.184 324.1)
XYZxyz(63.4070, 44.6013, 96.5170)
Luminance0.4460 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28CFB #95FB8C
analogous
#BB8CFB #F28CFB #FB8CCD
triadic
#F28CFB #FBF28C #8CFBF2
tetradic
#F28CFB #FBBB8C #95FB8C #8CCDFB
square
#F28CFB #FBBB8C #95FB8C #8CCDFB
split-complementary
#F28CFB #CDFB8C #8CFBBB
monochromatic
#E516F7 #EB51F9 #F28CFB #F9C7FD #FCE1FE

Accessibility & contrast

On white

2.12
#F28CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#F28CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28CFB
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28CFB#FFFFFF#000000##000000
##F28CFB1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FAAFF
Deuteranopia (green-blind)
#9CB7F8
Tritanopia (blue-blind)
#F699B8
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #f28cfb;
/* rgb */ color: rgb(242, 140, 251);
/* oklch */ color: oklch(78.7% 0.184 324.1);
Tailwind
colors: {
  custom: {
    50: '#f8b0fd',
    500: '#f28cfb',
    950: '#000000',
  },
}
SCSS
$custom: #f28cfb;
$custom-light: #f8b0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#f28cfb",
  "rgb": {
    "r": 242,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 295.135,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.78653,
    "c": 0.18433,
    "h": 324.1
  },
  "luminance": 0.44598
}

Semantic roles & 50–950 ramp

primary
#F28CFB
secondary
#D8F6D5
accent
#E60013
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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