#F07AFB#F07AFB

#F07AFB is a light, highly saturated purple. Relative luminance 0.394; OKLCH L 75.9% C 0.211 H 324.1°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#F07AFB
RGBrgb(240, 122, 251)
HSLhsl(295, 94%, 73%)
HSVhsv(295, 51%, 98%)
CMYKcmyk(4.4%, 51.4%, 0%, 1.6%)
CIE-LABlab(69.05, 63.05, -44.93)
CIE-LCHlch(69.05, 77.42, 324.53°)
OKLaboklab(75.95% 0.1713 -0.124)
OKLCHoklch(75.95% 0.211 324.1)
XYZxyz(60.3057, 39.4124, 95.6789)
Luminance0.3941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F07AFB #85FB7A
analogous
#AF7AFB #F07AFB #FB7AC5
triadic
#F07AFB #FBF07A #7AFBF0
tetradic
#F07AFB #FBAF7A #85FB7A #7AC5FB
square
#F07AFB #FBAF7A #85FB7A #7AC5FB
split-complementary
#F07AFB #C5FB7A #7AFBAF
monochromatic
#DF07F3 #E93FF9 #F07AFB #F7B5FD #FCE1FE

Accessibility & contrast

On white

2.36
#F07AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#F07AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F07AFB
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F07AFB#FFFFFF#000000##000000
##F07AFB1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#699FFF
Deuteranopia (green-blind)
#8DAEF7
Tritanopia (blue-blind)
#F48AB0
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #f07afb;
/* rgb */ color: rgb(240, 122, 251);
/* oklch */ color: oklch(75.9% 0.211 324.1);
Tailwind
colors: {
  custom: {
    50: '#f7a5fd',
    500: '#f07afb',
    950: '#000000',
  },
}
SCSS
$custom: #f07afb;
$custom-light: #f7a5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#f07afb",
  "rgb": {
    "r": 240,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 294.884,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.75949,
    "c": 0.21149,
    "h": 324.1
  },
  "luminance": 0.39409
}

Semantic roles & 50–950 ramp

primary
#F07AFB
secondary
#D8F6D5
accent
#E60014
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#181017
muted
#867F85

Preview Lab

Preview with #F07AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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