#C040C7#C040C7

#C040C7 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.4% C 0.223 H 325.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C040C7
RGBrgb(192, 64, 199)
HSLhsl(297, 55%, 52%)
HSVhsv(297, 68%, 78%)
CMYKcmyk(3.5%, 67.8%, 0%, 22%)
CIE-LABlab(50.69, 67.08, -45.17)
CIE-LCHlch(50.69, 80.87, 326.04°)
OKLaboklab(60.38% 0.1839 -0.1254)
OKLCHoklch(60.38% 0.223 325.7)
XYZxyz(33.8797, 18.9990, 55.9044)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040C7 #47C740
analogous
#7D40C7 #C040C7 #C7408B
triadic
#C040C7 #C7C040 #40C7C0
tetradic
#C040C7 #C77D40 #47C740 #408BC7
square
#C040C7 #C77D40 #47C740 #408BC7
split-complementary
#C040C7 #8BC740 #40C77D
monochromatic
#69206D #962E9C #C040C7 #D06FD5 #DF9FE3

Accessibility & contrast

On white

4.38
#C040C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#C040C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040C7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040C7#FFFFFF#000000##000000
##C040C71.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#246ECB
Deuteranopia (green-blind)
#5C7EC4
Tritanopia (blue-blind)
#C5557F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c040c7;
/* rgb */ color: rgb(192, 64, 199);
/* oklch */ color: oklch(60.4% 0.223 325.7);
Tailwind
colors: {
  custom: {
    50: '#d77fd8',
    500: '#c040c7',
    950: '#000000',
  },
}
SCSS
$custom: #c040c7;
$custom-light: #d77fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#c040c7",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 296.889,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60384,
    "c": 0.22255,
    "h": 325.7
  },
  "luminance": 0.18997
}

Semantic roles & 50–950 ramp

primary
#C040C7
secondary
#97CF94
accent
#DE4A51
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C040C7

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

Preview Lab → · Contrast checker → · Palette generator →

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