#C42EB5#C42EB5

#C42EB5 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.5% C 0.230 H 332.7°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C42EB5
RGBrgb(196, 46, 181)
HSLhsl(306, 62%, 47%)
HSVhsv(306, 77%, 77%)
CMYKcmyk(0%, 76.5%, 7.7%, 23.1%)
CIE-LABlab(48.30, 71.00, -38.45)
CIE-LCHlch(48.30, 80.74, 331.56°)
OKLaboklab(58.49% 0.2046 -0.1057)
OKLCHoklch(58.49% 0.23 332.7)
XYZxyz(32.0826, 17.0287, 45.3043)
Luminance0.1703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42EB5 #2EC43D
analogous
#882EC4 #C42EB5 #C42E6A
triadic
#C42EB5 #B5C42E #2EB5C4
tetradic
#C42EB5 #C4882E #2EC43D #2E6AC4
square
#C42EB5 #C4882E #2EC43D #2E6AC4
split-complementary
#C42EB5 #6AC42E #2EC488
monochromatic
#611759 #922287 #C42EB5 #D858CB #E389DA

Accessibility & contrast

On white

4.77
#C42EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#C42EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42EB5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42EB5#FFFFFF#000000##FFFFFF
##C42EB51.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B9
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#CD3F70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c42eb5;
/* rgb */ color: rgb(196, 46, 181);
/* oklch */ color: oklch(58.5% 0.230 332.7);
Tailwind
colors: {
  custom: {
    50: '#da78cb',
    500: '#c42eb5',
    950: '#000000',
  },
}
SCSS
$custom: #c42eb5;
$custom-light: #da78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c42eb5",
  "rgb": {
    "r": 196,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 306,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58485,
    "c": 0.23026,
    "h": 332.7
  },
  "luminance": 0.17026
}

Semantic roles & 50–950 ramp

primary
#C42EB5
secondary
#81CD88
accent
#E55343
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C42EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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