#FF7AFE#FF7AFE

#FF7AFE is a light, highly saturated purple. Relative luminance 0.423; OKLCH L 77.9% C 0.222 H 327.7°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#FF7AFE
RGBrgb(255, 122, 254)
HSLhsl(300, 100%, 74%)
HSVhsv(300, 52%, 100%)
CMYKcmyk(0%, 52.2%, 0.4%, 0%)
CIE-LABlab(71.10, 67.51, -43.21)
CIE-LCHlch(71.10, 80.16, 327.38°)
OKLaboklab(77.91% 0.1881 -0.1187)
OKLCHoklch(77.91% 0.222 327.7)
XYZxyz(66.0879, 42.3387, 98.4379)
Luminance0.4234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF7AFE #7AFF7B
analogous
#BE7AFF #FF7AFE #FF7ABC
triadic
#FF7AFE #FEFF7A #7AFEFF
tetradic
#FF7AFE #FFBE7A #7AFF7B #7ABCFF
square
#FF7AFE #FFBE7A #7AFF7B #7ABCFF
split-complementary
#FF7AFE #BCFF7A #7AFFBE
monochromatic
#FF00FD #FF3DFE #FF7AFE #FFB7FE #FFE0FF

Accessibility & contrast

On white

2.22
#FF7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.47
#FF7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF7AFE
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF7AFE#FFFFFF#000000##000000
##FF7AFE1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA3FF
Deuteranopia (green-blind)
#97B4FA
Tritanopia (blue-blind)
#FF89B1
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #ff7afe;
/* rgb */ color: rgb(255, 122, 254);
/* oklch */ color: oklch(77.9% 0.222 327.7);
Tailwind
colors: {
  custom: {
    50: '#ffa6ff',
    500: '#ff7afe',
    950: '#000000',
  },
}
SCSS
$custom: #ff7afe;
$custom-light: #ffa6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ff7afe",
  "rgb": {
    "r": 255,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 300.451,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.77905,
    "c": 0.22243,
    "h": 327.7
  },
  "luminance": 0.42335
}

Semantic roles & 50–950 ramp

primary
#FF7AFE
secondary
#D4F7D4
accent
#E60200
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#181018
muted
#867F86

Preview Lab

Preview with #FF7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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