#DF40FF#DF40FF

#DF40FF is a light, highly saturated purple. Relative luminance 0.266; OKLCH L 68.0% C 0.280 H 320.2°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#DF40FF
RGBrgb(223, 64, 255)
HSLhsl(290, 100%, 63%)
HSVhsv(290, 75%, 100%)
CMYKcmyk(12.5%, 74.9%, 0%, 0%)
CIE-LABlab(58.58, 83.00, -63.90)
CIE-LCHlch(58.58, 104.75, 322.41°)
OKLaboklab(67.97% 0.2152 -0.1792)
OKLCHoklch(67.97% 0.28 320.2)
XYZxyz(50.3126, 26.5774, 97.0682)
Luminance0.2657 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40FF #60FF40
analogous
#8040FF #DF40FF #FF40BF
triadic
#DF40FF #FFDF40 #40FFDF
tetradic
#DF40FF #FF8040 #60FF40 #40BFFF
square
#DF40FF #FF8040 #60FF40 #40BFFF
split-complementary
#DF40FF #BFFF40 #40FF80
monochromatic
#A400C5 #D503FF #DF40FF #E97DFF #F4BAFF

Accessibility & contrast

On white

3.33
#DF40FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#DF40FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40FF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40FF#FFFFFF#000000##000000
##DF40FF1.003.336.326.32
#FFFFFF3.331.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FF
Deuteranopia (green-blind)
#5392FB
Tritanopia (blue-blind)
#E0689E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #df40ff;
/* rgb */ color: rgb(223, 64, 255);
/* oklch */ color: oklch(68.0% 0.280 320.2);
Tailwind
colors: {
  custom: {
    50: '#ee85ff',
    500: '#df40ff',
    950: '#000000',
  },
}
SCSS
$custom: #df40ff;
$custom-light: #ee85ff;
$custom-dark: #000000;
JSON
{
  "hex": "#df40ff",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 289.948,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.6797,
    "c": 0.28004,
    "h": 320.2
  },
  "luminance": 0.26575
}

Semantic roles & 50–950 ramp

primary
#DF40FF
secondary
#B6F0AB
accent
#E60026
background
#FFF8FF
surface
#FEF0FF
border
#D6CBD7
text
#170C18
muted
#857D86

Preview Lab

Preview with #DF40FF

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

Preview Lab → · Contrast checker → · Palette generator →

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