#C040D7#C040D7

#C040D7 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.3% C 0.236 H 321.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#C040D7
RGBrgb(192, 64, 215)
HSLhsl(291, 65%, 55%)
HSVhsv(291, 70%, 84%)
CMYKcmyk(10.7%, 70.2%, 0%, 15.7%)
CIE-LABlab(51.59, 69.88, -52.91)
CIE-LCHlch(51.59, 87.65, 322.87°)
OKLaboklab(61.32% 0.1835 -0.148)
OKLCHoklch(61.32% 0.236 321.1)
XYZxyz(35.8360, 19.7815, 66.2074)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040D7 #57D740
analogous
#7540D7 #C040D7 #D740A3
triadic
#C040D7 #D7C040 #40D7C0
tetradic
#C040D7 #D77540 #57D740 #40A3D7
square
#C040D7 #D77540 #57D740 #40A3D7
split-complementary
#C040D7 #A3D740 #40D775
monochromatic
#721B81 #9E26B4 #C040D7 #D173E2 #E1A5EC

Accessibility & contrast

On white

4.24
#C040D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#C040D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040D7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040D7#FFFFFF#000000##000000
##C040D71.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DB
Deuteranopia (green-blind)
#5180D3
Tritanopia (blue-blind)
#C25C88
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c040d7;
/* rgb */ color: rgb(192, 64, 215);
/* oklch */ color: oklch(61.3% 0.236 321.1);
Tailwind
colors: {
  custom: {
    50: '#d780e4',
    500: '#c040d7',
    950: '#000000',
  },
}
SCSS
$custom: #c040d7;
$custom-light: #d780e4;
$custom-dark: #000000;
JSON
{
  "hex": "#c040d7",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 290.861,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61322,
    "c": 0.23572,
    "h": 321.1
  },
  "luminance": 0.1978
}

Semantic roles & 50–950 ramp

primary
#C040D7
secondary
#A3D99A
accent
#E83F59
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C040D7

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

Preview Lab → · Contrast checker → · Palette generator →

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