#C42EB2#C42EB2

#C42EB2 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.3% C 0.228 H 333.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C42EB2
RGBrgb(196, 46, 178)
HSLhsl(307, 62%, 47%)
HSVhsv(307, 77%, 77%)
CMYKcmyk(0%, 76.5%, 9.2%, 23.1%)
CIE-LABlab(48.14, 70.55, -36.94)
CIE-LCHlch(48.14, 79.64, 332.37°)
OKLaboklab(58.33% 0.2044 -0.1013)
OKLCHoklch(58.33% 0.228 333.6)
XYZxyz(31.7781, 16.9069, 43.7005)
Luminance0.1690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42EB2 #2EC440
analogous
#8B2EC4 #C42EB2 #C42E67
triadic
#C42EB2 #B2C42E #2EB2C4
tetradic
#C42EB2 #C48B2E #2EC440 #2E67C4
square
#C42EB2 #C48B2E #2EC440 #2E67C4
split-complementary
#C42EB2 #67C42E #2EC48B
monochromatic
#611758 #922285 #C42EB2 #D858C8 #E389D8

Accessibility & contrast

On white

4.79
#C42EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#C42EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42EB2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42EB2#FFFFFF#000000##FFFFFF
##C42EB21.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#CD3E6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c42eb2;
/* rgb */ color: rgb(196, 46, 178);
/* oklch */ color: oklch(58.3% 0.228 333.6);
Tailwind
colors: {
  custom: {
    50: '#da77c9',
    500: '#c42eb2',
    950: '#000000',
  },
}
SCSS
$custom: #c42eb2;
$custom-light: #da77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c42eb2",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 307.2,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58325,
    "c": 0.22817,
    "h": 333.6
  },
  "luminance": 0.16904
}

Semantic roles & 50–950 ramp

primary
#C42EB2
secondary
#81CD8A
accent
#E55643
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C42EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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