#C040C0#C040C0

#C040C0 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.217 H 327.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#C040C0
RGBrgb(192, 64, 192)
HSLhsl(300, 50%, 50%)
HSVhsv(300, 67%, 75%)
CMYKcmyk(0%, 66.7%, 0%, 24.7%)
CIE-LABlab(50.31, 65.90, -41.72)
CIE-LCHlch(50.31, 77.99, 327.66°)
OKLaboklab(59.99% 0.1837 -0.1154)
OKLCHoklch(59.99% 0.217 327.9)
XYZxyz(33.0856, 18.6813, 51.7222)
Luminance0.1868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040C0 #40C040
analogous
#8040C0 #C040C0 #C04080
triadic
#C040C0 #C0C040 #40C0C0
tetradic
#C040C0 #C08040 #40C040 #4080C0
square
#C040C0 #C08040 #40C040 #4080C0
split-complementary
#C040C0 #80C040 #40C080
monochromatic
#642164 #923092 #C040C0 #CF6ECF #DE9CDE

Accessibility & contrast

On white

4.43
#C040C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#C040C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040C0
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040C0#FFFFFF#000000##000000
##C040C01.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D6DC4
Deuteranopia (green-blind)
#607EBD
Tritanopia (blue-blind)
#C6527B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c040c0;
/* rgb */ color: rgb(192, 64, 192);
/* oklch */ color: oklch(60.0% 0.217 327.9);
Tailwind
colors: {
  custom: {
    50: '#d77fd3',
    500: '#c040c0',
    950: '#000000',
  },
}
SCSS
$custom: #c040c0;
$custom-light: #d77fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#c040c0",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 300,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59994,
    "c": 0.21694,
    "h": 327.9
  },
  "luminance": 0.18679
}

Semantic roles & 50–950 ramp

primary
#C040C0
secondary
#91CB91
accent
#DA4E4E
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C040C0

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

Preview Lab → · Contrast checker → · Palette generator →

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