#C040BA#C040BA

#C040BA is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.7% C 0.212 H 329.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#C040BA
RGBrgb(192, 64, 186)
HSLhsl(303, 50%, 50%)
HSVhsv(303, 67%, 75%)
CMYKcmyk(0%, 66.7%, 3.1%, 24.7%)
CIE-LABlab(50.00, 64.91, -38.73)
CIE-LCHlch(50.00, 75.58, 329.18°)
OKLaboklab(59.67% 0.1834 -0.1067)
OKLCHoklch(59.67% 0.212 329.8)
XYZxyz(32.4343, 18.4208, 48.2921)
Luminance0.1842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040BA #40C046
analogous
#8640C0 #C040BA #C0407A
triadic
#C040BA #BAC040 #40BAC0
tetradic
#C040BA #C08640 #40C046 #407AC0
square
#C040BA #C08640 #40C046 #407AC0
split-complementary
#C040BA #7AC040 #40C086
monochromatic
#642161 #92308E #C040BA #CF6ECB #DE9CDB

Accessibility & contrast

On white

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

On black

4.68
#C040BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040BA
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040BA#FFFFFF#000000##000000
##C040BA1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#336CBE
Deuteranopia (green-blind)
#637DB7
Tritanopia (blue-blind)
#C74F78
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c040ba;
/* rgb */ color: rgb(192, 64, 186);
/* oklch */ color: oklch(59.7% 0.212 329.8);
Tailwind
colors: {
  custom: {
    50: '#d67fcf',
    500: '#c040ba',
    950: '#000000',
  },
}
SCSS
$custom: #c040ba;
$custom-light: #d67fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#c040ba",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 302.813,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5967,
    "c": 0.21222,
    "h": 329.8
  },
  "luminance": 0.18418
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C040BA

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

Preview Lab → · Contrast checker → · Palette generator →

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