#C042BF#C042BF

#C042BF is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.1% C 0.214 H 328.2°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C042BF
RGBrgb(192, 66, 191)
HSLhsl(300, 50%, 51%)
HSVhsv(300, 66%, 75%)
CMYKcmyk(0%, 65.6%, 0.5%, 24.7%)
CIE-LABlab(50.53, 64.97, -40.79)
CIE-LCHlch(50.53, 76.72, 327.87°)
OKLaboklab(60.14% 0.1815 -0.1127)
OKLCHoklch(60.14% 0.214 328.2)
XYZxyz(33.0900, 18.8668, 51.1789)
Luminance0.1886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042BF #42C043
analogous
#8242C0 #C042BF #C04280
triadic
#C042BF #BFC042 #42BFC0
tetradic
#C042BF #C08242 #42C043 #4280C0
square
#C042BF #C08242 #42C043 #4280C0
split-complementary
#C042BF #80C042 #42C082
monochromatic
#662265 #943193 #C042BF #CF70CF #DF9EDE

Accessibility & contrast

On white

4.40
#C042BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#C042BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042BF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042BF#FFFFFF#000000##000000
##C042BF1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#316EC3
Deuteranopia (green-blind)
#627EBC
Tritanopia (blue-blind)
#C6537B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c042bf;
/* rgb */ color: rgb(192, 66, 191);
/* oklch */ color: oklch(60.1% 0.214 328.2);
Tailwind
colors: {
  custom: {
    50: '#d680d3',
    500: '#c042bf',
    950: '#000000',
  },
}
SCSS
$custom: #c042bf;
$custom-light: #d680d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c042bf",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 300.476,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60135,
    "c": 0.21366,
    "h": 328.2
  },
  "luminance": 0.18864
}

Semantic roles & 50–950 ramp

primary
#C042BF
secondary
#93CB93
accent
#DA4F4E
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C042BF

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

Preview Lab → · Contrast checker → · Palette generator →

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