#C42FB4#C42FB4

#C42FB4 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.229 H 333.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C42FB4
RGBrgb(196, 47, 180)
HSLhsl(306, 61%, 48%)
HSVhsv(306, 76%, 77%)
CMYKcmyk(0%, 76%, 8.2%, 23.1%)
CIE-LABlab(48.34, 70.56, -37.79)
CIE-LCHlch(48.34, 80.05, 331.83°)
OKLaboklab(58.5% 0.2037 -0.1038)
OKLCHoklch(58.5% 0.229 333)
XYZxyz(32.0199, 17.0668, 44.7790)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FB4 #2FC43F
analogous
#892FC4 #C42FB4 #C42F69
triadic
#C42FB4 #B4C42F #2FB4C4
tetradic
#C42FB4 #C4892F #2FC43F #2F69C4
square
#C42FB4 #C4892F #2FC43F #2F69C4
split-complementary
#C42FB4 #69C42F #2FC489
monochromatic
#611759 #932387 #C42FB4 #D759CA #E38ADA

Accessibility & contrast

On white

4.76
#C42FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C42FB4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FB4#FFFFFF#000000##FFFFFF
##C42FB41.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2765B8
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#CD4070
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c42fb4;
/* rgb */ color: rgb(196, 47, 180);
/* oklch */ color: oklch(58.5% 0.229 333.0);
Tailwind
colors: {
  custom: {
    50: '#da78cb',
    500: '#c42fb4',
    950: '#000000',
  },
}
SCSS
$custom: #c42fb4;
$custom-light: #da78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c42fb4",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 306.443,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58502,
    "c": 0.22861,
    "h": 333
  },
  "luminance": 0.17064
}

Semantic roles & 50–950 ramp

primary
#C42FB4
secondary
#82CD8A
accent
#E45543
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C42FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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