#F271A2#F271A2

#F271A2 is a light, vivid pink. Relative luminance 0.333; OKLCH L 71.5% C 0.166 H 358.2°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#F271A2
RGBrgb(242, 113, 162)
HSLhsl(337, 83%, 70%)
HSVhsv(337, 53%, 95%)
CMYKcmyk(0%, 53.3%, 33.1%, 5.1%)
CIE-LABlab(64.40, 54.48, -2.21)
CIE-LCHlch(64.40, 54.52, 357.68°)
OKLaboklab(71.47% 0.1657 -0.0051)
OKLCHoklch(71.47% 0.166 358.2)
XYZxyz(49.0470, 33.3009, 38.0201)
Luminance0.3330 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F271A2 #71F2C1
analogous
#F271E3 #F271A2 #F28071
triadic
#F271A2 #A2F271 #71A2F2
tetradic
#F271A2 #E3F271 #71F2C1 #8071F2
square
#F271A2 #E3F271 #71F2C1 #8071F2
split-complementary
#F271A2 #71F280 #71E3F2
monochromatic
#D5145D #ED397D #F271A2 #F7A9C7 #FCE1EB

Accessibility & contrast

On white

2.74
#F271A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#F271A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F271A2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F271A2#FFFFFF#000000##000000
##F271A21.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#858DA3
Deuteranopia (green-blind)
#A7A59F
Tritanopia (blue-blind)
#FF6883
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #f271a2;
/* rgb */ color: rgb(242, 113, 162);
/* oklch */ color: oklch(71.5% 0.166 358.2);
Tailwind
colors: {
  custom: {
    50: '#fa9ebd',
    500: '#f271a2',
    950: '#000000',
  },
}
SCSS
$custom: #f271a2;
$custom-light: #fa9ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#f271a2",
  "rgb": {
    "r": 242,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 337.209,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71468,
    "c": 0.16575,
    "h": 358.2
  },
  "luminance": 0.33296
}

Semantic roles & 50–950 ramp

primary
#F271A2
secondary
#CDF2E4
accent
#E08D06
background
#FFFAFB
surface
#FFF3F6
border
#D7CDD0
text
#180F12
muted
#867F81

Preview Lab

Preview with #F271A2

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

Preview Lab → · Contrast checker → · Palette generator →

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