#C040CD#C040CD

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

Color values

HEX#C040CD
RGBrgb(192, 64, 205)
HSLhsl(294, 59%, 53%)
HSVhsv(294, 69%, 80%)
CMYKcmyk(6.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(51.02, 68.11, -48.10)
CIE-LCHlch(51.02, 83.38, 324.77°)
OKLaboklab(60.73% 0.1838 -0.1339)
OKLCHoklch(60.73% 0.227 323.9)
XYZxyz(34.5901, 19.2831, 59.6459)
Luminance0.1928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040CD #4DCD40
analogous
#7940CD #C040CD #CD4093
triadic
#C040CD #CDC040 #40CDC0
tetradic
#C040CD #CD7940 #4DCD40 #4093CD
square
#C040CD #CD7940 #4DCD40 #4093CD
split-complementary
#C040CD #93CD40 #40CD79
monochromatic
#6C1E74 #992BA5 #C040CD #D071DA #E0A1E6

Accessibility & contrast

On white

4.32
#C040CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C040CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040CD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040CD#FFFFFF#000000##000000
##C040CD1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1870D1
Deuteranopia (green-blind)
#587FCA
Tritanopia (blue-blind)
#C35882
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c040cd;
/* rgb */ color: rgb(192, 64, 205);
/* oklch */ color: oklch(60.7% 0.227 323.9);
Tailwind
colors: {
  custom: {
    50: '#d780dd',
    500: '#c040cd',
    950: '#000000',
  },
}
SCSS
$custom: #c040cd;
$custom-light: #d780dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c040cd",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 294.468,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60728,
    "c": 0.22744,
    "h": 323.9
  },
  "luminance": 0.19281
}

Semantic roles & 50–950 ramp

primary
#C040CD
secondary
#9BD396
accent
#E24654
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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