#C040B7#C040B7

#C040B7 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.210 H 330.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C040B7
RGBrgb(192, 64, 183)
HSLhsl(304, 50%, 50%)
HSVhsv(304, 67%, 75%)
CMYKcmyk(0%, 66.7%, 4.7%, 24.7%)
CIE-LABlab(49.85, 64.42, -37.22)
CIE-LCHlch(49.85, 74.40, 329.99°)
OKLaboklab(59.51% 0.1832 -0.1024)
OKLCHoklch(59.51% 0.21 330.8)
XYZxyz(32.1188, 18.2946, 46.6301)
Luminance0.1829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040B7 #40C049
analogous
#8940C0 #C040B7 #C04077
triadic
#C040B7 #B7C040 #40B7C0
tetradic
#C040B7 #C08940 #40C049 #4077C0
square
#C040B7 #C08940 #40C049 #4077C0
split-complementary
#C040B7 #77C040 #40C089
monochromatic
#642160 #92308C #C040B7 #CF6EC8 #DE9CDA

Accessibility & contrast

On white

4.51
#C040B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#C040B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040B7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040B7#FFFFFF#000000##000000
##C040B71.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#366BBA
Deuteranopia (green-blind)
#657DB4
Tritanopia (blue-blind)
#C74E76
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c040b7;
/* rgb */ color: rgb(192, 64, 183);
/* oklch */ color: oklch(59.5% 0.210 330.8);
Tailwind
colors: {
  custom: {
    50: '#d67fcd',
    500: '#c040b7',
    950: '#000000',
  },
}
SCSS
$custom: #c040b7;
$custom-light: #d67fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#c040b7",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 304.219,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59512,
    "c": 0.20989,
    "h": 330.8
  },
  "luminance": 0.18292
}

Semantic roles & 50–950 ramp

primary
#C040B7
secondary
#91CB95
accent
#DA584E
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C040B7

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

Preview Lab → · Contrast checker → · Palette generator →

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