#C42FB8#C42FB8

#C42FB8 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.7% C 0.231 H 331.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#C42FB8
RGBrgb(196, 47, 184)
HSLhsl(305, 61%, 48%)
HSVhsv(305, 76%, 77%)
CMYKcmyk(0%, 76%, 6.1%, 23.1%)
CIE-LABlab(48.55, 71.16, -39.81)
CIE-LCHlch(48.55, 81.54, 330.78°)
OKLaboklab(58.72% 0.2038 -0.1096)
OKLCHoklch(58.72% 0.231 331.7)
XYZxyz(32.4332, 17.2322, 46.9561)
Luminance0.1723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FB8 #2FC43B
analogous
#852FC4 #C42FB8 #C42F6E
triadic
#C42FB8 #B8C42F #2FB8C4
tetradic
#C42FB8 #C4852F #2FC43B #2F6EC4
square
#C42FB8 #C4852F #2FC43B #2F6EC4
split-complementary
#C42FB8 #6EC42F #2FC485
monochromatic
#61175B #93238A #C42FB8 #D759CD #E38ADC

Accessibility & contrast

On white

4.72
#C42FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C42FB8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FB8#FFFFFF#000000##FFFFFF
##C42FB81.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2266BC
Deuteranopia (green-blind)
#607BB4
Tritanopia (blue-blind)
#CC4272
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c42fb8;
/* rgb */ color: rgb(196, 47, 184);
/* oklch */ color: oklch(58.7% 0.231 331.7);
Tailwind
colors: {
  custom: {
    50: '#da78ce',
    500: '#c42fb8',
    950: '#000000',
  },
}
SCSS
$custom: #c42fb8;
$custom-light: #da78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c42fb8",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 304.832,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58718,
    "c": 0.23142,
    "h": 331.7
  },
  "luminance": 0.17229
}

Semantic roles & 50–950 ramp

primary
#C42FB8
secondary
#82CD88
accent
#E45043
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C42FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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