#D240DF#D240DF

#D240DF is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.3% C 0.250 H 324.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#D240DF
RGBrgb(210, 64, 223)
HSLhsl(295, 71%, 56%)
HSVhsv(295, 71%, 87%)
CMYKcmyk(5.8%, 71.3%, 0%, 12.5%)
CIE-LABlab(54.76, 75.02, -52.23)
CIE-LCHlch(54.76, 91.41, 325.15°)
OKLaboklab(64.27% 0.2031 -0.1455)
OKLCHoklch(64.27% 0.25 324.4)
XYZxyz(41.7299, 22.6988, 71.9811)
Luminance0.2270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240DF #4DDF40
analogous
#8340DF #D240DF #DF409D
triadic
#D240DF #DFD240 #40DFD2
tetradic
#D240DF #DF8340 #4DDF40 #409DDF
square
#D240DF #DF8340 #4DDF40 #409DDF
split-complementary
#D240DF #9DDF40 #40DF83
monochromatic
#83188D #B420C1 #D240DF #DE74E8 #EBA9F1

Accessibility & contrast

On white

3.79
#D240DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#D240DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240DF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240DF#FFFFFF#000000##000000
##D240DF1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0378E3
Deuteranopia (green-blind)
#5E89DB
Tritanopia (blue-blind)
#D65C8C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d240df;
/* rgb */ color: rgb(210, 64, 223);
/* oklch */ color: oklch(64.3% 0.250 324.4);
Tailwind
colors: {
  custom: {
    50: '#e482ea',
    500: '#d240df',
    950: '#000000',
  },
}
SCSS
$custom: #d240df;
$custom-light: #e482ea;
$custom-dark: #000000;
JSON
{
  "hex": "#d240df",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 295.094,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.64271,
    "c": 0.24985,
    "h": 324.4
  },
  "luminance": 0.22696
}

Semantic roles & 50–950 ramp

primary
#D240DF
secondary
#A2DE9D
accent
#EE3A48
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D240DF

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

Preview Lab → · Contrast checker → · Palette generator →

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