#F278E2#F278E2

#F278E2 is a light, vivid purple. Relative luminance 0.378; OKLCH L 74.8% C 0.194 H 332.5°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#F278E2
RGBrgb(242, 120, 226)
HSLhsl(308, 82%, 71%)
HSVhsv(308, 50%, 95%)
CMYKcmyk(0%, 50.4%, 6.6%, 5.1%)
CIE-LABlab(67.88, 60.26, -32.97)
CIE-LCHlch(67.88, 68.69, 331.31°)
OKLaboklab(74.79% 0.1724 -0.0897)
OKLCHoklch(74.79% 0.194 332.5)
XYZxyz(57.0617, 37.8048, 76.2283)
Luminance0.3780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F278E2 #78F288
analogous
#C578F2 #F278E2 #F278A5
triadic
#F278E2 #E2F278 #78E2F2
tetradic
#F278E2 #F2C578 #78F288 #78A5F2
square
#F278E2 #F2C578 #78F288 #78A5F2
split-complementary
#F278E2 #A5F278 #78F2C5
monochromatic
#DB15C1 #ED40D6 #F278E2 #F7B0EE #FCE3F9

Accessibility & contrast

On white

2.45
#F278E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#F278E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F278E2
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F278E2#FFFFFF#000000##000000
##F278E21.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#759AE6
Deuteranopia (green-blind)
#98ACDF
Tritanopia (blue-blind)
#FB80A3
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #f278e2;
/* rgb */ color: rgb(242, 120, 226);
/* oklch */ color: oklch(74.8% 0.194 332.5);
Tailwind
colors: {
  custom: {
    50: '#f9a3eb',
    500: '#f278e2',
    950: '#000000',
  },
}
SCSS
$custom: #f278e2;
$custom-light: #f9a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#f278e2",
  "rgb": {
    "r": 242,
    "g": 120,
    "b": 226
  },
  "hsl": {
    "h": 307.869,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.74785,
    "c": 0.19432,
    "h": 332.5
  },
  "luminance": 0.37801
}

Semantic roles & 50–950 ramp

primary
#F278E2
secondary
#D3F3D7
accent
#DF2307
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F278E2

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

Preview Lab → · Contrast checker → · Palette generator →

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