#F870F2#F870F2

#F870F2 is a light, highly saturated purple. Relative luminance 0.380; OKLCH L 75.3% C 0.223 H 329.2°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#F870F2
RGBrgb(248, 112, 242)
HSLhsl(303, 91%, 71%)
HSVhsv(303, 55%, 97%)
CMYKcmyk(0%, 54.8%, 2.4%, 2.7%)
CIE-LABlab(67.99, 68.15, -41.57)
CIE-LCHlch(67.99, 79.83, 328.62°)
OKLaboklab(75.26% 0.1917 -0.1141)
OKLCHoklch(75.26% 0.223 329.2)
XYZxyz(60.5319, 37.9595, 88.1258)
Luminance0.3796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F870F2 #70F876
analogous
#BA70F8 #F870F2 #F870AE
triadic
#F870F2 #F2F870 #70F2F8
tetradic
#F870F2 #F8BA70 #70F876 #70AEF8
square
#F870F2 #F8BA70 #70F876 #70AEF8
split-complementary
#F870F2 #AEF870 #70F8BA
monochromatic
#E30BD9 #F536ED #F870F2 #FBAAF7 #FEE2FC

Accessibility & contrast

On white

2.44
#F870F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#F870F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F870F2
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F870F2#FFFFFF#000000##000000
##F870F21.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#91ACEE
Tritanopia (blue-blind)
#FF7EA7
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #f870f2;
/* rgb */ color: rgb(248, 112, 242);
/* oklch */ color: oklch(75.3% 0.223 329.2);
Tailwind
colors: {
  custom: {
    50: '#fd9ff7',
    500: '#f870f2',
    950: '#000000',
  },
}
SCSS
$custom: #f870f2;
$custom-light: #fd9ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#f870f2",
  "rgb": {
    "r": 248,
    "g": 112,
    "b": 242
  },
  "hsl": {
    "h": 302.647,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.75255,
    "c": 0.22309,
    "h": 329.2
  },
  "luminance": 0.37956
}

Semantic roles & 50–950 ramp

primary
#F870F2
secondary
#CFF4D1
accent
#E60A00
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#180F17
muted
#867F85

Preview Lab

Preview with #F870F2

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

Preview Lab → · Contrast checker → · Palette generator →

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