#C040A1#C040A1

#C040A1 is a mid, vivid pink. Relative luminance 0.174; OKLCH L 58.4% C 0.194 H 338.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#C040A1
RGBrgb(192, 64, 161)
HSLhsl(315, 50%, 50%)
HSVhsv(315, 67%, 75%)
CMYKcmyk(0%, 66.7%, 16.1%, 24.7%)
CIE-LABlab(48.82, 61.05, -25.89)
CIE-LCHlch(48.82, 66.31, 337.02°)
OKLaboklab(58.43% 0.1807 -0.07)
OKLCHoklch(58.43% 0.194 338.8)
XYZxyz(30.0053, 17.4492, 35.4991)
Luminance0.1745 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040A1 #40C05F
analogous
#9F40C0 #C040A1 #C04061
triadic
#C040A1 #A1C040 #40A1C0
tetradic
#C040A1 #C09F40 #40C05F #4061C0
square
#C040A1 #C09F40 #40C05F #4061C0
split-complementary
#C040A1 #61C040 #40C09F
monochromatic
#642154 #92307B #C040A1 #CF6EB8 #DE9CCE

Accessibility & contrast

On white

4.68
#C040A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#C040A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C040A1
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040A1#FFFFFF#000000##FFFFFF
##C040A11.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4667A4
Deuteranopia (green-blind)
#6E7B9E
Tritanopia (blue-blind)
#CB456B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c040a1;
/* rgb */ color: rgb(192, 64, 161);
/* oklch */ color: oklch(58.4% 0.194 338.8);
Tailwind
colors: {
  custom: {
    50: '#d67ebd',
    500: '#c040a1',
    950: '#000000',
  },
}
SCSS
$custom: #c040a1;
$custom-light: #d67ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#c040a1",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 314.531,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58428,
    "c": 0.19377,
    "h": 338.8
  },
  "luminance": 0.17446
}

Semantic roles & 50–950 ramp

primary
#C040A1
secondary
#91CB9F
accent
#DA704E
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C040A1

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

Preview Lab → · Contrast checker → · Palette generator →

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