#C740D1#C740D1

#C740D1 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.234 H 325.0°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#C740D1
RGBrgb(199, 64, 209)
HSLhsl(296, 61%, 54%)
HSVhsv(296, 69%, 82%)
CMYKcmyk(4.8%, 69.4%, 0%, 18%)
CIE-LABlab(52.30, 70.33, -48.28)
CIE-LCHlch(52.30, 85.30, 325.53°)
OKLaboklab(61.93% 0.1915 -0.1343)
OKLCHoklch(61.93% 0.234 325)
XYZxyz(36.8943, 20.4147, 62.3064)
Luminance0.2041 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C740D1 #4AD140
analogous
#7E40D1 #C740D1 #D14092
triadic
#C740D1 #D1C740 #40D1C7
tetradic
#C740D1 #D17E40 #4AD140 #4092D1
square
#C740D1 #D17E40 #4AD140 #4092D1
split-complementary
#C740D1 #92D140 #40D17E
monochromatic
#731D79 #A229AB #C740D1 #D571DD #E4A3E9

Accessibility & contrast

On white

4.13
#C740D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#C740D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C740D1
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C740D1#FFFFFF#000000##000000
##C740D11.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A72D5
Deuteranopia (green-blind)
#5D82CD
Tritanopia (blue-blind)
#CB5884
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c740d1;
/* rgb */ color: rgb(199, 64, 209);
/* oklch */ color: oklch(61.9% 0.234 325.0);
Tailwind
colors: {
  custom: {
    50: '#dc81e0',
    500: '#c740d1',
    950: '#000000',
  },
}
SCSS
$custom: #c740d1;
$custom-light: #dc81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c740d1",
  "rgb": {
    "r": 199,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 295.862,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61932,
    "c": 0.23388,
    "h": 325
  },
  "luminance": 0.20412
}

Semantic roles & 50–950 ramp

primary
#C740D1
secondary
#9CD597
accent
#E4444F
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#150B15
muted
#847C83

Preview Lab

Preview with #C740D1

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

Preview Lab → · Contrast checker → · Palette generator →

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