#F2AFEF#F2AFEF

#F2AFEF is a very light, moderate purple. Relative luminance 0.558; OKLCH L 83.7% C 0.113 H 328.0°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#F2AFEF
RGBrgb(242, 175, 239)
HSLhsl(303, 72%, 82%)
HSVhsv(303, 28%, 95%)
CMYKcmyk(0%, 27.7%, 1.2%, 5.1%)
CIE-LABlab(79.48, 34.58, -22.27)
CIE-LCHlch(79.48, 41.13, 327.22°)
OKLaboklab(83.68% 0.0962 -0.0601)
OKLCHoklch(83.68% 0.113 328)
XYZxyz(67.5265, 55.7715, 88.8525)
Luminance0.5577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2AFEF #AFF2B2
analogous
#D4AFF2 #F2AFEF #F2AFCE
triadic
#F2AFEF #EFF2AF #AFEFF2
tetradic
#F2AFEF #F2D4AF #AFF2B2 #AFCEF2
square
#F2AFEF #F2D4AF #AFF2B2 #AFCEF2
split-complementary
#F2AFEF #CEF2AF #AFF2D4
monochromatic
#E146DA #E97AE4 #F2AFEF #FBE4FA #FBE5FA

Accessibility & contrast

On white

1.73
#F2AFEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#F2AFEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2AFEF
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2AFEF#FFFFFF#000000##000000
##F2AFEF1.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#ABC0F2
Deuteranopia (green-blind)
#BBC8ED
Tritanopia (blue-blind)
#F7B4C6
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #f2afef;
/* rgb */ color: rgb(242, 175, 239);
/* oklch */ color: oklch(83.7% 0.113 328.0);
Tailwind
colors: {
  custom: {
    50: '#f7c7f4',
    500: '#f2afef',
    950: '#000000',
  },
}
SCSS
$custom: #f2afef;
$custom-light: #f7c7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2afef",
  "rgb": {
    "r": 242,
    "g": 175,
    "b": 239
  },
  "hsl": {
    "h": 302.687,
    "s": 72.043,
    "l": 81.765
  },
  "oklch": {
    "l": 0.83675,
    "c": 0.11344,
    "h": 328
  },
  "luminance": 0.55769
}

Semantic roles & 50–950 ramp

primary
#F2AFEF
secondary
#74D178
accent
#D41A11
background
#FFFDFF
surface
#FFF9FE
border
#D7D2D6
text
#171317
muted
#858285

Preview Lab

Preview with #F2AFEF

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

Preview Lab → · Contrast checker → · Palette generator →

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