#C42FB9#C42FB9

#C42FB9 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.8% C 0.232 H 331.4°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#C42FB9
RGBrgb(196, 47, 185)
HSLhsl(304, 61%, 48%)
HSVhsv(304, 76%, 77%)
CMYKcmyk(0%, 76%, 5.6%, 23.1%)
CIE-LABlab(48.60, 71.31, -40.31)
CIE-LCHlch(48.60, 81.92, 330.52°)
OKLaboklab(58.77% 0.2038 -0.1111)
OKLCHoklch(58.77% 0.232 331.4)
XYZxyz(32.5384, 17.2743, 47.5101)
Luminance0.1727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FB9 #2FC43A
analogous
#852FC4 #C42FB9 #C42F6E
triadic
#C42FB9 #B9C42F #2FB9C4
tetradic
#C42FB9 #C4852F #2FC43A #2F6EC4
square
#C42FB9 #C4852F #2FC43A #2F6EC4
split-complementary
#C42FB9 #6EC42F #2FC485
monochromatic
#61175C #93238A #C42FB9 #D759CE #E38ADC

Accessibility & contrast

On white

4.71
#C42FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#C42FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42FB9
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FB9#FFFFFF#000000##FFFFFF
##C42FB91.004.714.454.71
#FFFFFF4.711.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2066BD
Deuteranopia (green-blind)
#607BB5
Tritanopia (blue-blind)
#CC4272
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c42fb9;
/* rgb */ color: rgb(196, 47, 185);
/* oklch */ color: oklch(58.8% 0.232 331.4);
Tailwind
colors: {
  custom: {
    50: '#da78ce',
    500: '#c42fb9',
    950: '#000000',
  },
}
SCSS
$custom: #c42fb9;
$custom-light: #da78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c42fb9",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 304.43,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58772,
    "c": 0.23214,
    "h": 331.4
  },
  "luminance": 0.17272
}

Semantic roles & 50–950 ramp

primary
#C42FB9
secondary
#82CD87
accent
#E44F43
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C42FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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