#FFAFF2#FFAFF2

#FFAFF2 is a very light, vivid purple. Relative luminance 0.583; OKLCH L 85.1% C 0.126 H 332.5°. Best body text is #000000 at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#FFAFF2
RGBrgb(255, 175, 242)
HSLhsl(310, 100%, 84%)
HSVhsv(310, 31%, 100%)
CMYKcmyk(0%, 31.4%, 5.1%, 0%)
CIE-LABlab(80.92, 39.27, -21.57)
CIE-LCHlch(80.92, 44.81, 331.22°)
OKLaboklab(85.11% 0.1115 -0.058)
OKLCHoklch(85.11% 0.126 332.5)
XYZxyz(72.5961, 58.3338, 91.4227)
Luminance0.5833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFAFF2 #AFFFBC
analogous
#E4AFFF #FFAFF2 #FFAFCA
triadic
#FFAFF2 #F2FFAF #AFF2FF
tetradic
#FFAFF2 #FFE4AF #AFFFBC #AFCAFF
square
#FFAFF2 #FFE4AF #AFFFBC #AFCAFF
split-complementary
#FFAFF2 #CAFFAF #AFFFE4
monochromatic
#FF35DE #FF72E8 #FFAFF2 #FFE0FA #FFE0FA

Accessibility & contrast

On white

1.66
#FFAFF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.67
#FFAFF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFAFF2
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFAFF2#FFFFFF#000000##000000
##FFAFF21.001.6612.6712.67
#FFFFFF1.661.0021.0021.00
#00000012.6721.001.001.00
##00000012.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEC2F5
Deuteranopia (green-blind)
#C1CDEF
Tritanopia (blue-blind)
#FFB3C7
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #ffaff2;
/* rgb */ color: rgb(255, 175, 242);
/* oklch */ color: oklch(85.1% 0.126 332.5);
Tailwind
colors: {
  custom: {
    50: '#ffc8f6',
    500: '#ffaff2',
    950: '#000000',
  },
}
SCSS
$custom: #ffaff2;
$custom-light: #ffc8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffaff2",
  "rgb": {
    "r": 255,
    "g": 175,
    "b": 242
  },
  "hsl": {
    "h": 309.75,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.85106,
    "c": 0.12562,
    "h": 332.5
  },
  "luminance": 0.58331
}

Semantic roles & 50–950 ramp

primary
#FFAFF2
secondary
#6DE581
accent
#E62500
background
#FFFDFF
surface
#FFF9FE
border
#D7D2D6
text
#181317
muted
#868285

Preview Lab

Preview with #FFAFF2

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

Preview Lab → · Contrast checker → · Palette generator →

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