#C040BF#C040BF

#C040BF is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.216 H 328.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C040BF
RGBrgb(192, 64, 191)
HSLhsl(300, 50%, 50%)
HSVhsv(300, 67%, 75%)
CMYKcmyk(0%, 66.7%, 0.5%, 24.7%)
CIE-LABlab(50.26, 65.73, -41.22)
CIE-LCHlch(50.26, 77.59, 327.91°)
OKLaboklab(59.94% 0.1837 -0.1139)
OKLCHoklch(59.94% 0.216 328.2)
XYZxyz(32.9752, 18.6371, 51.1406)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040BF #40C041
analogous
#8140C0 #C040BF #C0407F
triadic
#C040BF #BFC040 #40BFC0
tetradic
#C040BF #C08140 #40C041 #407FC0
square
#C040BF #C08140 #40C041 #407FC0
split-complementary
#C040BF #7FC040 #40C081
monochromatic
#642164 #923092 #C040BF #CF6ECE #DE9CDE

Accessibility & contrast

On white

4.44
#C040BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C040BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040BF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040BF#FFFFFF#000000##000000
##C040BF1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6DC3
Deuteranopia (green-blind)
#617DBC
Tritanopia (blue-blind)
#C6517A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c040bf;
/* rgb */ color: rgb(192, 64, 191);
/* oklch */ color: oklch(59.9% 0.216 328.2);
Tailwind
colors: {
  custom: {
    50: '#d67fd3',
    500: '#c040bf',
    950: '#000000',
  },
}
SCSS
$custom: #c040bf;
$custom-light: #d67fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#c040bf",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 300.469,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59939,
    "c": 0.21615,
    "h": 328.2
  },
  "luminance": 0.18635
}

Semantic roles & 50–950 ramp

primary
#C040BF
secondary
#91CB92
accent
#DA4F4E
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C040BF

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

Preview Lab → · Contrast checker → · Palette generator →

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