#FF51F2#FF51F2

#FF51F2 is a light, highly saturated purple. Relative luminance 0.336; OKLCH L 73.0% C 0.267 H 331.1°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#FF51F2
RGBrgb(255, 81, 242)
HSLhsl(304, 100%, 66%)
HSVhsv(304, 68%, 100%)
CMYKcmyk(0%, 68.2%, 5.1%, 0%)
CIE-LABlab(64.61, 81.95, -46.81)
CIE-LCHlch(64.61, 94.38, 330.26°)
OKLaboklab(73% 0.2337 -0.1288)
OKLCHoklch(73% 0.267 331.1)
XYZxyz(60.2093, 33.5603, 87.2938)
Luminance0.3356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51F2 #51FF5E
analogous
#B551FF #FF51F2 #FF519B
triadic
#FF51F2 #F2FF51 #51F2FF
tetradic
#FF51F2 #FFB551 #51FF5E #519BFF
square
#FF51F2 #FFB551 #51FF5E #519BFF
split-complementary
#FF51F2 #9BFF51 #51FFB5
monochromatic
#D600C6 #FF14ED #FF51F2 #FF8EF7 #FFCBFB

Accessibility & contrast

On white

2.72
#FF51F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#FF51F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51F2
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51F2#FFFFFF#000000##000000
##FF51F21.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#448DF7
Deuteranopia (green-blind)
#85A5EE
Tritanopia (blue-blind)
#FF659C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ff51f2;
/* rgb */ color: rgb(255, 81, 242);
/* oklch */ color: oklch(73.0% 0.267 331.1);
Tailwind
colors: {
  custom: {
    50: '#ff90f7',
    500: '#ff51f2',
    950: '#000000',
  },
}
SCSS
$custom: #ff51f2;
$custom-light: #ff90f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51f2",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 304.483,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.72997,
    "c": 0.2668,
    "h": 331.1
  },
  "luminance": 0.33556
}

Semantic roles & 50–950 ramp

primary
#FF51F2
secondary
#B9F3BD
accent
#E61100
background
#FFF9FF
surface
#FFF2FF
border
#D7CCD7
text
#190E17
muted
#877E85

Preview Lab

Preview with #FF51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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