#F172E4#F172E4

#F172E4 is a light, highly saturated purple. Relative luminance 0.363; OKLCH L 74.0% C 0.205 H 331.5°. Best body text is #000000 at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#F172E4
RGBrgb(241, 114, 228)
HSLhsl(306, 82%, 70%)
HSVhsv(306, 53%, 95%)
CMYKcmyk(0%, 52.7%, 5.4%, 5.5%)
CIE-LABlab(66.78, 63.10, -35.80)
CIE-LCHlch(66.78, 72.54, 330.43°)
OKLaboklab(73.97% 0.1797 -0.0977)
OKLCHoklch(73.97% 0.205 331.5)
XYZxyz(56.2962, 36.3405, 77.4330)
Luminance0.3634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F172E4 #72F17F
analogous
#BF72F1 #F172E4 #F172A4
triadic
#F172E4 #E4F172 #72E4F1
tetradic
#F172E4 #F1BF72 #72F17F #72A4F1
square
#F172E4 #F1BF72 #72F17F #72A4F1
split-complementary
#F172E4 #A4F172 #72F1BF
monochromatic
#D415C0 #EB3AD9 #F172E4 #F7AAEF #FCE1F9

Accessibility & contrast

On white

2.54
#F172E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#F172E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F172E4
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F172E4#FFFFFF#000000##000000
##F172E41.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D97E8
Deuteranopia (green-blind)
#93A9E0
Tritanopia (blue-blind)
#FA7CA1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #f172e4;
/* rgb */ color: rgb(241, 114, 228);
/* oklch */ color: oklch(74.0% 0.205 331.5);
Tailwind
colors: {
  custom: {
    50: '#f8a0ed',
    500: '#f172e4',
    950: '#000000',
  },
}
SCSS
$custom: #f172e4;
$custom-light: #f8a0ed;
$custom-dark: #000000;
JSON
{
  "hex": "#f172e4",
  "rgb": {
    "r": 241,
    "g": 114,
    "b": 228
  },
  "hsl": {
    "h": 306.142,
    "s": 81.935,
    "l": 69.608
  },
  "oklch": {
    "l": 0.73974,
    "c": 0.20452,
    "h": 331.5
  },
  "luminance": 0.36337
}

Semantic roles & 50–950 ramp

primary
#F172E4
secondary
#CDF2D1
accent
#DE1D07
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#180F16
muted
#867F84

Preview Lab

Preview with #F172E4

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

Preview Lab → · Contrast checker → · Palette generator →

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