#C040B5#C040B5

#C040B5 is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.4% C 0.208 H 331.5°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#C040B5
RGBrgb(192, 64, 181)
HSLhsl(305, 50%, 50%)
HSVhsv(305, 67%, 75%)
CMYKcmyk(0%, 66.7%, 5.7%, 24.7%)
CIE-LABlab(49.75, 64.10, -36.20)
CIE-LCHlch(49.75, 73.62, 330.54°)
OKLaboklab(59.41% 0.1831 -0.0994)
OKLCHoklch(59.41% 0.208 331.5)
XYZxyz(31.9121, 18.2119, 45.5416)
Luminance0.1821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040B5 #40C04B
analogous
#8B40C0 #C040B5 #C04075
triadic
#C040B5 #B5C040 #40B5C0
tetradic
#C040B5 #C08B40 #40C04B #4075C0
square
#C040B5 #C08B40 #40C04B #4075C0
split-complementary
#C040B5 #75C040 #40C08B
monochromatic
#64215F #92308A #C040B5 #CF6EC7 #DE9CD9

Accessibility & contrast

On white

4.52
#C040B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#C040B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040B5
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040B5#FFFFFF#000000##000000
##C040B51.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#386BB8
Deuteranopia (green-blind)
#667DB2
Tritanopia (blue-blind)
#C84D75
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c040b5;
/* rgb */ color: rgb(192, 64, 181);
/* oklch */ color: oklch(59.4% 0.208 331.5);
Tailwind
colors: {
  custom: {
    50: '#d67fcb',
    500: '#c040b5',
    950: '#000000',
  },
}
SCSS
$custom: #c040b5;
$custom-light: #d67fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#c040b5",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 305.156,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59407,
    "c": 0.20836,
    "h": 331.5
  },
  "luminance": 0.18209
}

Semantic roles & 50–950 ramp

primary
#C040B5
secondary
#91CB96
accent
#DA5A4E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C040B5

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

Preview Lab → · Contrast checker → · Palette generator →

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