#C040BB#C040BB

#C040BB is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.213 H 329.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#C040BB
RGBrgb(192, 64, 187)
HSLhsl(302, 50%, 50%)
HSVhsv(302, 67%, 75%)
CMYKcmyk(0%, 66.7%, 2.6%, 24.7%)
CIE-LABlab(50.05, 65.07, -39.23)
CIE-LCHlch(50.05, 75.98, 328.92°)
OKLaboklab(59.72% 0.1835 -0.1082)
OKLCHoklch(59.72% 0.213 329.5)
XYZxyz(32.5410, 18.4635, 48.8540)
Luminance0.1846 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040BB #40C045
analogous
#8540C0 #C040BB #C0407B
triadic
#C040BB #BBC040 #40BBC0
tetradic
#C040BB #C08540 #40C045 #407BC0
square
#C040BB #C08540 #40C045 #407BC0
split-complementary
#C040BB #7BC040 #40C085
monochromatic
#642162 #92308F #C040BB #CF6ECB #DE9CDC

Accessibility & contrast

On white

4.48
#C040BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#C040BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040BB
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040BB#FFFFFF#000000##000000
##C040BB1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#326CBF
Deuteranopia (green-blind)
#637DB8
Tritanopia (blue-blind)
#C75078
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c040bb;
/* rgb */ color: rgb(192, 64, 187);
/* oklch */ color: oklch(59.7% 0.213 329.5);
Tailwind
colors: {
  custom: {
    50: '#d67fd0',
    500: '#c040bb',
    950: '#000000',
  },
}
SCSS
$custom: #c040bb;
$custom-light: #d67fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#c040bb",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 302.344,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59723,
    "c": 0.21299,
    "h": 329.5
  },
  "luminance": 0.18461
}

Semantic roles & 50–950 ramp

primary
#C040BB
secondary
#91CB94
accent
#DA534E
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C040BB

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

Preview Lab → · Contrast checker → · Palette generator →

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