#F07EF2#F07EF2

#F07EF2 is a light, vivid purple. Relative luminance 0.399; OKLCH L 76.1% C 0.197 H 326.7°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#F07EF2
RGBrgb(240, 126, 242)
HSLhsl(299, 82%, 72%)
HSVhsv(299, 48%, 95%)
CMYKcmyk(0.8%, 47.9%, 0%, 5.1%)
CIE-LABlab(69.37, 59.56, -39.49)
CIE-LCHlch(69.37, 71.46, 326.45°)
OKLaboklab(76.06% 0.1648 -0.1084)
OKLCHoklch(76.06% 0.197 326.7)
XYZxyz(59.4219, 39.8609, 88.5512)
Luminance0.3986 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F07EF2 #80F27E
analogous
#B67EF2 #F07EF2 #F27EBA
triadic
#F07EF2 #F2F07E #7EF2F0
tetradic
#F07EF2 #F2B67E #80F27E #7EBAF2
square
#F07EF2 #F2B67E #80F27E #7EBAF2
split-complementary
#F07EF2 #BAF27E #7EF2B6
monochromatic
#DC16DF #EA46EC #F07EF2 #F6B6F8 #FCE3FC

Accessibility & contrast

On white

2.34
#F07EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#F07EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F07EF2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F07EF2#FFFFFF#000000##000000
##F07EF21.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#94AFEE
Tritanopia (blue-blind)
#F68BAD
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #f07ef2;
/* rgb */ color: rgb(240, 126, 242);
/* oklch */ color: oklch(76.1% 0.197 326.7);
Tailwind
colors: {
  custom: {
    50: '#f7a7f6',
    500: '#f07ef2',
    950: '#000000',
  },
}
SCSS
$custom: #f07ef2;
$custom-light: #f7a7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#f07ef2",
  "rgb": {
    "r": 240,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 298.966,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.76056,
    "c": 0.19725,
    "h": 326.7
  },
  "luminance": 0.39858
}

Semantic roles & 50–950 ramp

primary
#F07EF2
secondary
#D7F4D7
accent
#DE070B
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#171017
muted
#857F85

Preview Lab

Preview with #F07EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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