#C42FC7#C42FC7

#C42FC7 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.6% C 0.242 H 327.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C42FC7
RGBrgb(196, 47, 199)
HSLhsl(299, 62%, 48%)
HSVhsv(299, 76%, 78%)
CMYKcmyk(1.5%, 76.4%, 0%, 22%)
CIE-LABlab(49.37, 73.49, -47.23)
CIE-LCHlch(49.37, 87.36, 327.27°)
OKLaboklab(59.56% 0.2037 -0.1312)
OKLCHoklch(59.56% 0.242 327.2)
XYZxyz(34.0897, 17.8948, 55.6803)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FC7 #32C72F
analogous
#782FC7 #C42FC7 #C72F7E
triadic
#C42FC7 #C7C42F #2FC7C4
tetradic
#C42FC7 #C7782F #32C72F #2F7EC7
square
#C42FC7 #C7782F #32C72F #2F7EC7
split-complementary
#C42FC7 #7EC72F #2FC778
monochromatic
#621864 #932395 #C42FC7 #D65BD8 #E28CE4

Accessibility & contrast

On white

4.59
#C42FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#C42FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C42FC7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FC7#FFFFFF#000000##FFFFFF
##C42FC71.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#587CC3
Tritanopia (blue-blind)
#CA497A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c42fc7;
/* rgb */ color: rgb(196, 47, 199);
/* oklch */ color: oklch(59.6% 0.242 327.2);
Tailwind
colors: {
  custom: {
    50: '#da79d8',
    500: '#c42fc7',
    950: '#000000',
  },
}
SCSS
$custom: #c42fc7;
$custom-light: #da79d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c42fc7",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 298.816,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.59564,
    "c": 0.24228,
    "h": 327.2
  },
  "luminance": 0.17892
}

Semantic roles & 50–950 ramp

primary
#C42FC7
secondary
#85CE84
accent
#E54346
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A15
muted
#837C83

Preview Lab

Preview with #C42FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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