#D240C2#D240C2

#D240C2 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.7% C 0.228 H 332.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#D240C2
RGBrgb(210, 64, 194)
HSLhsl(307, 62%, 54%)
HSVhsv(307, 70%, 82%)
CMYKcmyk(0%, 69.5%, 7.6%, 17.6%)
CIE-LABlab(53.24, 70.38, -38.07)
CIE-LCHlch(53.24, 80.01, 331.59°)
OKLaboklab(62.69% 0.2026 -0.1044)
OKLCHoklch(62.69% 0.228 332.7)
XYZxyz(38.1495, 21.2666, 53.1241)
Luminance0.2126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D240C2 #40D250
analogous
#9940D2 #D240C2 #D24079
triadic
#D240C2 #C2D240 #40C2D2
tetradic
#D240C2 #D29940 #40D250 #4079D2
square
#D240C2 #D29940 #40D250 #4079D2
split-complementary
#D240C2 #79D240 #40D299
monochromatic
#7B1D70 #AC299E #D240C2 #DE72D2 #E9A3E2

Accessibility & contrast

On white

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

On black

5.25
#D240C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D240C2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D240C2#FFFFFF#000000##000000
##D240C21.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3972C6
Deuteranopia (green-blind)
#6F87BE
Tritanopia (blue-blind)
#DB4E7C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d240c2;
/* rgb */ color: rgb(210, 64, 194);
/* oklch */ color: oklch(62.7% 0.228 332.7);
Tailwind
colors: {
  custom: {
    50: '#e481d5',
    500: '#d240c2',
    950: '#000000',
  },
}
SCSS
$custom: #d240c2;
$custom-light: #e481d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d240c2",
  "rgb": {
    "r": 210,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 306.575,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.62688,
    "c": 0.22793,
    "h": 332.7
  },
  "luminance": 0.21263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D240C2

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

Preview Lab → · Contrast checker → · Palette generator →

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