#F870A2#F870A2

#F870A2 is a light, vivid pink. Relative luminance 0.342; OKLCH L 72.2% C 0.173 H 359.3°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#F870A2
RGBrgb(248, 112, 162)
HSLhsl(338, 91%, 71%)
HSVhsv(338, 55%, 97%)
CMYKcmyk(0%, 54.8%, 34.7%, 2.7%)
CIE-LABlab(65.09, 56.86, -1.10)
CIE-LCHlch(65.09, 56.87, 358.89°)
OKLaboklab(72.15% 0.1731 -0.0022)
OKLCHoklch(72.15% 0.173 359.3)
XYZxyz(51.0298, 34.1586, 38.0812)
Luminance0.3415 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F870A2 #70F8C6
analogous
#F870E6 #F870A2 #F88270
triadic
#F870A2 #A2F870 #70A2F8
tetradic
#F870A2 #E6F870 #70F8C6 #8270F8
square
#F870A2 #E6F870 #70F8C6 #8270F8
split-complementary
#F870A2 #70F882 #70E6F8
monochromatic
#E30B5A #F5367C #F870A2 #FBAAC8 #FEE2EC

Accessibility & contrast

On white

2.68
#F870A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#F870A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F870A2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F870A2#FFFFFF#000000##000000
##F870A21.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#868EA3
Deuteranopia (green-blind)
#AAA89F
Tritanopia (blue-blind)
#FF6583
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #f870a2;
/* rgb */ color: rgb(248, 112, 162);
/* oklch */ color: oklch(72.2% 0.173 359.3);
Tailwind
colors: {
  custom: {
    50: '#fe9ebd',
    500: '#f870a2',
    950: '#000000',
  },
}
SCSS
$custom: #f870a2;
$custom-light: #fe9ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#f870a2",
  "rgb": {
    "r": 248,
    "g": 112,
    "b": 162
  },
  "hsl": {
    "h": 337.941,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.72153,
    "c": 0.17314,
    "h": 359.3
  },
  "luminance": 0.34153
}

Semantic roles & 50–950 ramp

primary
#F870A2
secondary
#CFF4E7
accent
#E69100
background
#FFFAFB
surface
#FFF3F6
border
#D7CDD0
text
#180F12
muted
#867F81

Preview Lab

Preview with #F870A2

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

Preview Lab → · Contrast checker → · Palette generator →

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