#F2AFE7#F2AFE7

#F2AFE7 is a very light, moderate purple. Relative luminance 0.553; OKLCH L 83.4% C 0.106 H 332.3°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#F2AFE7
RGBrgb(242, 175, 231)
HSLhsl(310, 72%, 82%)
HSVhsv(310, 28%, 95%)
CMYKcmyk(0%, 27.7%, 4.5%, 5.1%)
CIE-LABlab(79.22, 33.16, -18.36)
CIE-LCHlch(79.22, 37.91, 331.04°)
OKLaboklab(83.39% 0.0939 -0.0492)
OKLCHoklch(83.39% 0.106 332.3)
XYZxyz(66.3707, 55.3091, 82.7654)
Luminance0.5531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2AFE7 #AFF2BA
analogous
#DCAFF2 #F2AFE7 #F2AFC6
triadic
#F2AFE7 #E7F2AF #AFE7F2
tetradic
#F2AFE7 #F2DCAF #AFF2BA #AFC6F2
square
#F2AFE7 #F2DCAF #AFF2BA #AFC6F2
split-complementary
#F2AFE7 #C6F2AF #AFF2DC
monochromatic
#E146C7 #E97AD7 #F2AFE7 #FBE4F7 #FBE5F7

Accessibility & contrast

On white

1.74
#F2AFE7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#F2AFE7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2AFE7
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2AFE7#FFFFFF#000000##000000
##F2AFE71.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEBFE9
Deuteranopia (green-blind)
#BEC8E5
Tritanopia (blue-blind)
#F8B2C3
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #f2afe7;
/* rgb */ color: rgb(242, 175, 231);
/* oklch */ color: oklch(83.4% 0.106 332.3);
Tailwind
colors: {
  custom: {
    50: '#f7c7ee',
    500: '#f2afe7',
    950: '#000000',
  },
}
SCSS
$custom: #f2afe7;
$custom-light: #f7c7ee;
$custom-dark: #000000;
JSON
{
  "hex": "#f2afe7",
  "rgb": {
    "r": 242,
    "g": 175,
    "b": 231
  },
  "hsl": {
    "h": 309.851,
    "s": 72.043,
    "l": 81.765
  },
  "oklch": {
    "l": 0.83385,
    "c": 0.106,
    "h": 332.3
  },
  "luminance": 0.55307
}

Semantic roles & 50–950 ramp

primary
#F2AFE7
secondary
#74D183
accent
#D43111
background
#FFFDFF
surface
#FFF9FE
border
#D7D2D6
text
#171316
muted
#858285

Preview Lab

Preview with #F2AFE7

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

Preview Lab → · Contrast checker → · Palette generator →

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