#C240D3#C240D3

#C240D3 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.4% C 0.233 H 322.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C240D3
RGBrgb(194, 64, 211)
HSLhsl(293, 63%, 54%)
HSVhsv(293, 70%, 83%)
CMYKcmyk(8.1%, 69.7%, 0%, 17.3%)
CIE-LABlab(51.66, 69.59, -50.50)
CIE-LCHlch(51.66, 85.98, 324.04°)
OKLaboklab(61.36% 0.1859 -0.1409)
OKLCHoklch(61.36% 0.233 322.8)
XYZxyz(35.8383, 19.8413, 63.5575)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240D3 #51D340
analogous
#7940D3 #C240D3 #D3409B
triadic
#C240D3 #D3C240 #40D3C2
tetradic
#C240D3 #D37940 #51D340 #409BD3
square
#C240D3 #D37940 #51D340 #409BD3
split-complementary
#C240D3 #9BD340 #40D379
monochromatic
#711D7C #9E28AE #C240D3 #D272DE #E2A3EA

Accessibility & contrast

On white

4.23
#C240D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C240D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240D3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240D3#FFFFFF#000000##000000
##C240D31.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0972D7
Deuteranopia (green-blind)
#5680CF
Tritanopia (blue-blind)
#C55A85
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c240d3;
/* rgb */ color: rgb(194, 64, 211);
/* oklch */ color: oklch(61.4% 0.233 322.8);
Tailwind
colors: {
  custom: {
    50: '#d880e1',
    500: '#c240d3',
    950: '#000000',
  },
}
SCSS
$custom: #c240d3;
$custom-light: #d880e1;
$custom-dark: #000000;
JSON
{
  "hex": "#c240d3",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 293.061,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61356,
    "c": 0.23326,
    "h": 322.8
  },
  "luminance": 0.19839
}

Semantic roles & 50–950 ramp

primary
#C240D3
secondary
#9FD798
accent
#E64255
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C240D3

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

Preview Lab → · Contrast checker → · Palette generator →

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