#C040C5#C040C5

#C040C5 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.3% C 0.221 H 326.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C040C5
RGBrgb(192, 64, 197)
HSLhsl(298, 53%, 51%)
HSVhsv(298, 68%, 77%)
CMYKcmyk(2.5%, 67.5%, 0%, 22.7%)
CIE-LABlab(50.58, 66.74, -44.19)
CIE-LCHlch(50.58, 80.04, 326.49°)
OKLaboklab(60.27% 0.1838 -0.1226)
OKLCHoklch(60.27% 0.221 326.3)
XYZxyz(33.6490, 18.9067, 54.6895)
Luminance0.1890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040C5 #45C540
analogous
#7D40C5 #C040C5 #C54087
triadic
#C040C5 #C5C040 #40C5C0
tetradic
#C040C5 #C57D40 #45C540 #4087C5
square
#C040C5 #C57D40 #45C540 #4087C5
split-complementary
#C040C5 #87C540 #40C57D
monochromatic
#68206A #952F99 #C040C5 #CF6FD3 #DF9EE2

Accessibility & contrast

On white

4.39
#C040C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#C040C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040C5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040C5#FFFFFF#000000##000000
##C040C51.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#276EC9
Deuteranopia (green-blind)
#5D7EC2
Tritanopia (blue-blind)
#C5547E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c040c5;
/* rgb */ color: rgb(192, 64, 197);
/* oklch */ color: oklch(60.3% 0.221 326.3);
Tailwind
colors: {
  custom: {
    50: '#d77fd7',
    500: '#c040c5',
    950: '#000000',
  },
}
SCSS
$custom: #c040c5;
$custom-light: #d77fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#c040c5",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 297.744,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60271,
    "c": 0.22094,
    "h": 326.3
  },
  "luminance": 0.18904
}

Semantic roles & 50–950 ramp

primary
#C040C5
secondary
#95CE93
accent
#DD4B50
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C040C5

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

Preview Lab → · Contrast checker → · Palette generator →

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