#FE7AF2#FE7AF2

#FE7AF2 is a light, highly saturated purple. Relative luminance 0.414; OKLCH L 77.2% C 0.212 H 331.0°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#FE7AF2
RGBrgb(254, 122, 242)
HSLhsl(305, 99%, 74%)
HSVhsv(305, 52%, 100%)
CMYKcmyk(0%, 52%, 4.7%, 0.4%)
CIE-LABlab(70.46, 65.26, -37.66)
CIE-LCHlch(70.46, 75.35, 330.01°)
OKLaboklab(77.23% 0.1853 -0.1029)
OKLCHoklch(77.23% 0.212 331)
XYZxyz(63.8592, 41.4048, 88.6156)
Luminance0.4140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FE7AF2 #7AFE86
analogous
#C87AFE #FE7AF2 #FE7AB0
triadic
#FE7AF2 #F2FE7A #7AF2FE
tetradic
#FE7AF2 #FEC87A #7AFE86 #7AB0FE
square
#FE7AF2 #FEC87A #7AFE86 #7AB0FE
split-complementary
#FE7AF2 #B0FE7A #7AFEC8
monochromatic
#FC02E5 #FE3DEC #FE7AF2 #FEB7F8 #FFE1FC

Accessibility & contrast

On white

2.26
#FE7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#FE7AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FE7AF2
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FE7AF2#FFFFFF#000000##000000
##FE7AF21.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A1F6
Deuteranopia (green-blind)
#9BB3EE
Tritanopia (blue-blind)
#FF85AB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #fe7af2;
/* rgb */ color: rgb(254, 122, 242);
/* oklch */ color: oklch(77.2% 0.212 331.0);
Tailwind
colors: {
  custom: {
    50: '#ffa6f6',
    500: '#fe7af2',
    950: '#000000',
  },
}
SCSS
$custom: #fe7af2;
$custom-light: #ffa6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#fe7af2",
  "rgb": {
    "r": 254,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 305.455,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.77234,
    "c": 0.21194,
    "h": 331
  },
  "luminance": 0.41401
}

Semantic roles & 50–950 ramp

primary
#FE7AF2
secondary
#D4F7D7
accent
#E61500
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#181017
muted
#867F85

Preview Lab

Preview with #FE7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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