#D240C0#D240C0

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

Color values

HEX#D240C0
RGBrgb(210, 64, 192)
HSLhsl(307, 62%, 54%)
HSVhsv(307, 70%, 82%)
CMYKcmyk(0%, 69.5%, 8.6%, 17.6%)
CIE-LABlab(53.14, 70.07, -37.07)
CIE-LCHlch(53.14, 79.27, 332.12°)
OKLaboklab(62.59% 0.2025 -0.1015)
OKLCHoklch(62.59% 0.226 333.4)
XYZxyz(37.9264, 21.1773, 51.9491)
Luminance0.2117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C0 #40D252
analogous
#9B40D2 #D240C0 #D24077
triadic
#D240C0 #C0D240 #40C0D2
tetradic
#D240C0 #D29B40 #40D252 #4077D2
square
#D240C0 #D29B40 #40D252 #4077D2
split-complementary
#D240C0 #77D240 #40D29B
monochromatic
#7B1D6F #AC299C #D240C0 #DE72D0 #E9A3E1

Accessibility & contrast

On white

4.01
#D240C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#D240C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C0#FFFFFF#000000##000000
##D240C01.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B71C4
Deuteranopia (green-blind)
#7086BC
Tritanopia (blue-blind)
#DB4D7B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240c0;
/* rgb */ color: rgb(210, 64, 192);
/* oklch */ color: oklch(62.6% 0.226 333.4);
Tailwind
colors: {
  custom: {
    50: '#e481d3',
    500: '#d240c0',
    950: '#000000',
  },
}
SCSS
$custom: #d240c0;
$custom-light: #e481d3;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c0",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 307.397,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62587,
    "c": 0.22649,
    "h": 333.4
  },
  "luminance": 0.21174
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240C0

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

Preview Lab → · Contrast checker → · Palette generator →

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