#C042B4#C042B4

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

Color values

HEX#C042B4
RGBrgb(192, 66, 180)
HSLhsl(306, 50%, 51%)
HSVhsv(306, 66%, 75%)
CMYKcmyk(0%, 65.6%, 6.2%, 24.7%)
CIE-LABlab(49.98, 63.17, -35.27)
CIE-LCHlch(49.98, 72.35, 330.83°)
OKLaboklab(59.56% 0.1808 -0.0968)
OKLCHoklch(59.56% 0.205 331.8)
XYZxyz(31.9247, 18.4006, 45.0414)
Luminance0.1840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042B4 #42C04E
analogous
#8D42C0 #C042B4 #C04275
triadic
#C042B4 #B4C042 #42B4C0
tetradic
#C042B4 #C08D42 #42C04E #4275C0
square
#C042B4 #C08D42 #42C04E #4275C0
split-complementary
#C042B4 #75C042 #42C08D
monochromatic
#66225F #94318A #C042B4 #CF70C6 #DF9ED8

Accessibility & contrast

On white

4.49
#C042B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C042B4#FFFFFF#000000##000000
##C042B41.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6BB7
Deuteranopia (green-blind)
#677DB1
Tritanopia (blue-blind)
#C84E75
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c042b4;
/* rgb */ color: rgb(192, 66, 180);
/* oklch */ color: oklch(59.6% 0.205 331.8);
Tailwind
colors: {
  custom: {
    50: '#d680cb',
    500: '#c042b4',
    950: '#000000',
  },
}
SCSS
$custom: #c042b4;
$custom-light: #d680cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c042b4",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 305.714,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59555,
    "c": 0.20504,
    "h": 331.8
  },
  "luminance": 0.18398
}

Semantic roles & 50–950 ramp

primary
#C042B4
secondary
#93CB98
accent
#DA5C4E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C042B4

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

Preview Lab → · Contrast checker → · Palette generator →

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