#C042B2#C042B2

#C042B2 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.204 H 332.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C042B2
RGBrgb(192, 66, 178)
HSLhsl(307, 50%, 51%)
HSVhsv(307, 66%, 75%)
CMYKcmyk(0%, 65.6%, 7.3%, 24.7%)
CIE-LABlab(49.88, 62.85, -34.25)
CIE-LCHlch(49.88, 71.58, 331.42°)
OKLaboklab(59.45% 0.1806 -0.0938)
OKLCHoklch(59.45% 0.204 332.5)
XYZxyz(31.7224, 18.3197, 43.9761)
Luminance0.1832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042B2 #42C050
analogous
#8F42C0 #C042B2 #C04273
triadic
#C042B2 #B2C042 #42B2C0
tetradic
#C042B2 #C08F42 #42C050 #4273C0
square
#C042B2 #C08F42 #42C050 #4273C0
split-complementary
#C042B2 #73C042 #42C08F
monochromatic
#66225E #943189 #C042B2 #CF70C5 #DF9ED7

Accessibility & contrast

On white

4.50
#C042B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#C042B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042B2#FFFFFF#000000##000000
##C042B21.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#687DAF
Tritanopia (blue-blind)
#C84D74
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c042b2;
/* rgb */ color: rgb(192, 66, 178);
/* oklch */ color: oklch(59.5% 0.204 332.5);
Tailwind
colors: {
  custom: {
    50: '#d680c9',
    500: '#c042b2',
    950: '#000000',
  },
}
SCSS
$custom: #c042b2;
$custom-light: #d680c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c042b2",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 306.667,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59454,
    "c": 0.20352,
    "h": 332.5
  },
  "luminance": 0.18317
}

Semantic roles & 50–950 ramp

primary
#C042B2
secondary
#93CB99
accent
#DA5E4E
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C042B2

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

Preview Lab → · Contrast checker → · Palette generator →

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