#F28CE2#F28CE2

#F28CE2 is a light, vivid purple. Relative luminance 0.431; OKLCH L 77.6% C 0.162 H 333.0°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#F28CE2
RGBrgb(242, 140, 226)
HSLhsl(309, 80%, 75%)
HSVhsv(309, 42%, 95%)
CMYKcmyk(0%, 42.1%, 6.6%, 5.1%)
CIE-LABlab(71.64, 50.49, -27.17)
CIE-LCHlch(71.64, 57.34, 331.72°)
OKLaboklab(77.59% 0.1443 -0.0735)
OKLCHoklch(77.59% 0.162 333)
XYZxyz(59.7231, 43.1277, 77.1155)
Luminance0.4312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28CE2 #8CF29C
analogous
#CF8CF2 #F28CE2 #F28CAF
triadic
#F28CE2 #E2F28C #8CE2F2
tetradic
#F28CE2 #F2CF8C #8CF29C #8CAFF2
square
#F28CE2 #F2CF8C #8CF29C #8CAFF2
split-complementary
#F28CE2 #AFF28C #8CF2CF
monochromatic
#E61EC6 #EC55D4 #F28CE2 #F8C3F0 #FCE4F8

Accessibility & contrast

On white

2.18
#F28CE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#F28CE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28CE2
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28CE2#FFFFFF#000000##000000
##F28CE21.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA6E5
Deuteranopia (green-blind)
#A5B5DF
Tritanopia (blue-blind)
#FA92AD
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #f28ce2;
/* rgb */ color: rgb(242, 140, 226);
/* oklch */ color: oklch(77.6% 0.162 333.0);
Tailwind
colors: {
  custom: {
    50: '#f8b0eb',
    500: '#f28ce2',
    950: '#000000',
  },
}
SCSS
$custom: #f28ce2;
$custom-light: #f8b0eb;
$custom-dark: #000000;
JSON
{
  "hex": "#f28ce2",
  "rgb": {
    "r": 242,
    "g": 140,
    "b": 226
  },
  "hsl": {
    "h": 309.412,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.77591,
    "c": 0.1619,
    "h": 333
  },
  "luminance": 0.43124
}

Semantic roles & 50–950 ramp

primary
#F28CE2
secondary
#D7F4DC
accent
#DC2B0A
background
#FFFBFE
surface
#FFF6FD
border
#D7D0D5
text
#171116
muted
#858084

Preview Lab

Preview with #F28CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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