#C240C7#C240C7

#C240C7 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.7% C 0.224 H 326.3°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#C240C7
RGBrgb(194, 64, 199)
HSLhsl(298, 55%, 52%)
HSVhsv(298, 68%, 78%)
CMYKcmyk(2.5%, 67.8%, 0%, 22%)
CIE-LABlab(50.99, 67.53, -44.67)
CIE-LCHlch(50.99, 80.96, 326.52°)
OKLaboklab(60.66% 0.186 -0.1239)
OKLCHoklch(60.66% 0.224 326.3)
XYZxyz(34.3897, 19.2619, 55.9283)
Luminance0.1926 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240C7 #45C740
analogous
#7F40C7 #C240C7 #C74089
triadic
#C240C7 #C7C240 #40C7C2
tetradic
#C240C7 #C77F40 #45C740 #4089C7
square
#C240C7 #C77F40 #45C740 #4089C7
split-complementary
#C240C7 #89C740 #40C77F
monochromatic
#6A206D #982E9C #C240C7 #D16FD5 #E09FE3

Accessibility & contrast

On white

4.33
#C240C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#C240C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240C7
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240C7#FFFFFF#000000##000000
##C240C71.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#266FCB
Deuteranopia (green-blind)
#5E7FC4
Tritanopia (blue-blind)
#C7547F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c240c7;
/* rgb */ color: rgb(194, 64, 199);
/* oklch */ color: oklch(60.7% 0.224 326.3);
Tailwind
colors: {
  custom: {
    50: '#d880d8',
    500: '#c240c7',
    950: '#000000',
  },
}
SCSS
$custom: #c240c7;
$custom-light: #d880d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c240c7",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 297.778,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60664,
    "c": 0.22352,
    "h": 326.3
  },
  "luminance": 0.1926
}

Semantic roles & 50–950 ramp

primary
#C240C7
secondary
#96CF94
accent
#DE4A4F
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C240C7

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

Preview Lab → · Contrast checker → · Palette generator →

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