#D240C1#D240C1

#D240C1 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.6% C 0.227 H 333.0°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#D240C1
RGBrgb(210, 64, 193)
HSLhsl(307, 62%, 54%)
HSVhsv(307, 70%, 82%)
CMYKcmyk(0%, 69.5%, 8.1%, 17.6%)
CIE-LABlab(53.19, 70.23, -37.57)
CIE-LCHlch(53.19, 79.64, 331.85°)
OKLaboklab(62.64% 0.2025 -0.103)
OKLCHoklch(62.64% 0.227 333)
XYZxyz(38.0376, 21.2218, 52.5346)
Luminance0.2122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C1 #40D251
analogous
#9A40D2 #D240C1 #D24078
triadic
#D240C1 #C1D240 #40C1D2
tetradic
#D240C1 #D29A40 #40D251 #4078D2
square
#D240C1 #D29A40 #40D251 #4078D2
split-complementary
#D240C1 #78D240 #40D29A
monochromatic
#7B1D70 #AC299D #D240C1 #DE72D1 #E9A3E1

Accessibility & contrast

On white

4.00
#D240C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#D240C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C1#FFFFFF#000000##000000
##D240C11.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A72C5
Deuteranopia (green-blind)
#6F86BD
Tritanopia (blue-blind)
#DB4E7C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240c1;
/* rgb */ color: rgb(210, 64, 193);
/* oklch */ color: oklch(62.6% 0.227 333.0);
Tailwind
colors: {
  custom: {
    50: '#e481d4',
    500: '#d240c1',
    950: '#000000',
  },
}
SCSS
$custom: #d240c1;
$custom-light: #e481d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c1",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 306.986,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62637,
    "c": 0.22721,
    "h": 333
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#D240C1
secondary
#98D69F
accent
#E55643
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D240C1

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

Preview Lab → · Contrast checker → · Palette generator →

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