#C040B1#C040B1

#C040B1 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.2% C 0.205 H 332.9°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#C040B1
RGBrgb(192, 64, 177)
HSLhsl(307, 50%, 50%)
HSVhsv(307, 67%, 75%)
CMYKcmyk(0%, 66.7%, 7.8%, 24.7%)
CIE-LABlab(49.56, 63.47, -34.17)
CIE-LCHlch(49.56, 72.08, 331.70°)
OKLaboklab(59.2% 0.1827 -0.0936)
OKLCHoklch(59.2% 0.205 332.9)
XYZxyz(31.5075, 18.0501, 43.4110)
Luminance0.1805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040B1 #40C04F
analogous
#8F40C0 #C040B1 #C04071
triadic
#C040B1 #B1C040 #40B1C0
tetradic
#C040B1 #C08F40 #40C04F #4071C0
square
#C040B1 #C08F40 #40C04F #4071C0
split-complementary
#C040B1 #71C040 #40C08F
monochromatic
#64215D #923087 #C040B1 #CF6EC4 #DE9CD7

Accessibility & contrast

On white

4.56
#C040B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#C040B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040B1
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040B1#FFFFFF#000000##000000
##C040B11.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6AB4
Deuteranopia (green-blind)
#687CAE
Tritanopia (blue-blind)
#C84B73
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c040b1;
/* rgb */ color: rgb(192, 64, 177);
/* oklch */ color: oklch(59.2% 0.205 332.9);
Tailwind
colors: {
  custom: {
    50: '#d67fc8',
    500: '#c040b1',
    950: '#000000',
  },
}
SCSS
$custom: #c040b1;
$custom-light: #d67fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c040b1",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 307.031,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59202,
    "c": 0.20532,
    "h": 332.9
  },
  "luminance": 0.18048
}

Semantic roles & 50–950 ramp

primary
#C040B1
secondary
#91CB98
accent
#DA5E4E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C040B1

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

Preview Lab → · Contrast checker → · Palette generator →

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