#FFAFFB#FFAFFB

#FFAFFB is a very light, vivid purple. Relative luminance 0.589; OKLCH L 85.4% C 0.134 H 328.4°. Best body text is #000000 at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#FFAFFB
RGBrgb(255, 175, 251)
HSLhsl(303, 100%, 84%)
HSVhsv(303, 31%, 100%)
CMYKcmyk(0%, 31.4%, 1.6%, 0%)
CIE-LABlab(81.23, 40.84, -25.93)
CIE-LCHlch(81.23, 48.38, 327.59°)
OKLaboklab(85.44% 0.1139 -0.0701)
OKLCHoklch(85.44% 0.134 328.4)
XYZxyz(73.9811, 58.8878, 98.7176)
Luminance0.5888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFAFFB #AFFFB3
analogous
#DBAFFF #FFAFFB #FFAFD3
triadic
#FFAFFB #FBFFAF #AFFBFF
tetradic
#FFAFFB #FFDBAF #AFFFB3 #AFD3FF
square
#FFAFFB #FFDBAF #AFFFB3 #AFD3FF
split-complementary
#FFAFFB #D3FFAF #AFFFDB
monochromatic
#FF35F5 #FF72F8 #FFAFFB #FFE0FD #FFE0FD

Accessibility & contrast

On white

1.64
#FFAFFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.78
#FFAFFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFAFFB
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFAFFB#FFFFFF#000000##000000
##FFAFFB1.001.6412.7812.78
#FFFFFF1.641.0021.0021.00
#00000012.7821.001.001.00
##00000012.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#ABC3FE
Deuteranopia (green-blind)
#BECEF8
Tritanopia (blue-blind)
#FFB5CB
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ffaffb;
/* rgb */ color: rgb(255, 175, 251);
/* oklch */ color: oklch(85.4% 0.134 328.4);
Tailwind
colors: {
  custom: {
    50: '#ffc8fc',
    500: '#ffaffb',
    950: '#000000',
  },
}
SCSS
$custom: #ffaffb;
$custom-light: #ffc8fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ffaffb",
  "rgb": {
    "r": 255,
    "g": 175,
    "b": 251
  },
  "hsl": {
    "h": 303,
    "s": 100,
    "l": 84.314
  },
  "oklch": {
    "l": 0.85439,
    "c": 0.13378,
    "h": 328.4
  },
  "luminance": 0.58885
}

Semantic roles & 50–950 ramp

primary
#FFAFFB
secondary
#6DE573
accent
#E60B00
background
#FFFDFF
surface
#FFF9FF
border
#D7D2D7
text
#181317
muted
#868285

Preview Lab

Preview with #FFAFFB

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

Preview Lab → · Contrast checker → · Palette generator →

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