#C042B5#C042B5

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

Color values

HEX#C042B5
RGBrgb(192, 66, 181)
HSLhsl(305, 50%, 51%)
HSVhsv(305, 66%, 75%)
CMYKcmyk(0%, 65.6%, 5.7%, 24.7%)
CIE-LABlab(50.03, 63.33, -35.77)
CIE-LCHlch(50.03, 72.74, 330.54°)
OKLaboklab(59.61% 0.1809 -0.0982)
OKLCHoklch(59.61% 0.206 331.5)
XYZxyz(32.0269, 18.4415, 45.5798)
Luminance0.1844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042B5 #42C04D
analogous
#8C42C0 #C042B5 #C04276
triadic
#C042B5 #B5C042 #42B5C0
tetradic
#C042B5 #C08C42 #42C04D #4276C0
square
#C042B5 #C08C42 #42C04D #4276C0
split-complementary
#C042B5 #76C042 #42C08C
monochromatic
#662260 #94318B #C042B5 #CF70C7 #DF9ED9

Accessibility & contrast

On white

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

On black

4.69
#C042B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042B5
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042B5#FFFFFF#000000##000000
##C042B51.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6CB8
Deuteranopia (green-blind)
#677DB2
Tritanopia (blue-blind)
#C84F76
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c042b5;
/* rgb */ color: rgb(192, 66, 181);
/* oklch */ color: oklch(59.6% 0.206 331.5);
Tailwind
colors: {
  custom: {
    50: '#d680cb',
    500: '#c042b5',
    950: '#000000',
  },
}
SCSS
$custom: #c042b5;
$custom-light: #d680cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c042b5",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 305.238,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59607,
    "c": 0.20581,
    "h": 331.5
  },
  "luminance": 0.18439
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C042B5

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

Preview Lab → · Contrast checker → · Palette generator →

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