#FF42FF#FF42FF

#FF42FF is a light, highly saturated purple. Relative luminance 0.324; OKLCH L 72.5% C 0.291 H 328.1°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#FF42FF
RGBrgb(255, 66, 255)
HSLhsl(300, 100%, 63%)
HSVhsv(300, 74%, 100%)
CMYKcmyk(0%, 74.1%, 0%, 0%)
CIE-LABlab(63.66, 88.50, -55.51)
CIE-LCHlch(63.66, 104.47, 327.90°)
OKLaboklab(72.52% 0.247 -0.1539)
OKLCHoklch(72.52% 0.291 328.1)
XYZxyz(61.2375, 32.3810, 97.6132)
Luminance0.3238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF42FF #42FF42
analogous
#A042FF #FF42FF #FF42A0
triadic
#FF42FF #FFFF42 #42FFFF
tetradic
#FF42FF #FFA042 #42FF42 #42A0FF
square
#FF42FF #FFA042 #42FF42 #42A0FF
split-complementary
#FF42FF #A0FF42 #42FFA0
monochromatic
#C700C7 #FF05FF #FF42FF #FF7FFF #FFBCFF

Accessibility & contrast

On white

2.81
#FF42FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#FF42FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF42FF
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF42FF#FFFFFF#000000##000000
##FF42FF1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F8BFF
Deuteranopia (green-blind)
#78A3FA
Tritanopia (blue-blind)
#FF619F
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ff42ff;
/* rgb */ color: rgb(255, 66, 255);
/* oklch */ color: oklch(72.5% 0.291 328.1);
Tailwind
colors: {
  custom: {
    50: '#ff8aff',
    500: '#ff42ff',
    950: '#000000',
  },
}
SCSS
$custom: #ff42ff;
$custom-light: #ff8aff;
$custom-dark: #000000;
JSON
{
  "hex": "#ff42ff",
  "rgb": {
    "r": 255,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 300,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.72524,
    "c": 0.29103,
    "h": 328.1
  },
  "luminance": 0.32376
}

Semantic roles & 50–950 ramp

primary
#FF42FF
secondary
#ACF0AC
accent
#E60000
background
#FFF9FF
surface
#FFF1FF
border
#D7CBD7
text
#190D18
muted
#877E86

Preview Lab

Preview with #FF42FF

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

Preview Lab → · Contrast checker → · Palette generator →

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