#FF5AF7#FF5AF7

#FF5AF7 is a light, highly saturated purple. Relative luminance 0.353; OKLCH L 74.1% C 0.260 H 329.8°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#FF5AF7
RGBrgb(255, 90, 247)
HSLhsl(303, 100%, 68%)
HSVhsv(303, 65%, 100%)
CMYKcmyk(0%, 64.7%, 3.1%, 0%)
CIE-LABlab(65.98, 79.55, -47.42)
CIE-LCHlch(65.98, 92.62, 329.20°)
OKLaboklab(74.06% 0.2248 -0.1306)
OKLCHoklch(74.06% 0.26 329.8)
XYZxyz(61.6842, 35.2922, 91.5408)
Luminance0.3529 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF5AF7 #5AFF62
analogous
#B45AFF #FF5AF7 #FF5AA5
triadic
#FF5AF7 #F7FF5A #5AF7FF
tetradic
#FF5AF7 #FFB45A #5AFF62 #5AA5FF
square
#FF5AF7 #FFB45A #5AFF62 #5AA5FF
split-complementary
#FF5AF7 #A5FF5A #5AFFB4
monochromatic
#DF00D4 #FF1DF4 #FF5AF7 #FF97FA #FFD4FD

Accessibility & contrast

On white

2.61
#FF5AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#FF5AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF5AF7
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF5AF7#FFFFFF#000000##000000
##FF5AF71.002.618.068.06
#FFFFFF2.611.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A92FC
Deuteranopia (green-blind)
#87A8F3
Tritanopia (blue-blind)
#FF6DA1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ff5af7;
/* rgb */ color: rgb(255, 90, 247);
/* oklch */ color: oklch(74.1% 0.260 329.8);
Tailwind
colors: {
  custom: {
    50: '#ff94fa',
    500: '#ff5af7',
    950: '#000000',
  },
}
SCSS
$custom: #ff5af7;
$custom-light: #ff94fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ff5af7",
  "rgb": {
    "r": 255,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 302.909,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.74059,
    "c": 0.26004,
    "h": 329.8
  },
  "luminance": 0.35288
}

Semantic roles & 50–950 ramp

primary
#FF5AF7
secondary
#C1F4C3
accent
#E60B00
background
#FFF9FF
surface
#FFF2FF
border
#D7CCD7
text
#190E17
muted
#877E85

Preview Lab

Preview with #FF5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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