#C42FAF#C42FAF

#C42FAF is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.225 H 334.6°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C42FAF
RGBrgb(196, 47, 175)
HSLhsl(308, 61%, 48%)
HSVhsv(308, 76%, 77%)
CMYKcmyk(0%, 76%, 10.7%, 23.1%)
CIE-LABlab(48.09, 69.83, -35.25)
CIE-LCHlch(48.09, 78.22, 333.21°)
OKLaboklab(58.24% 0.2034 -0.0965)
OKLCHoklch(58.24% 0.225 334.6)
XYZxyz(31.5197, 16.8668, 42.1447)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FAF #2FC444
analogous
#8E2FC4 #C42FAF #C42F65
triadic
#C42FAF #AFC42F #2FAFC4
tetradic
#C42FAF #C48E2F #2FC444 #2F65C4
square
#C42FAF #C48E2F #2FC444 #2F65C4
split-complementary
#C42FAF #65C42F #2FC48E
monochromatic
#611757 #932383 #C42FAF #D759C5 #E38AD7

Accessibility & contrast

On white

4.80
#C42FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#C42FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42FAF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FAF#FFFFFF#000000##FFFFFF
##C42FAF1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D64B2
Deuteranopia (green-blind)
#657AAC
Tritanopia (blue-blind)
#CE3D6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c42faf;
/* rgb */ color: rgb(196, 47, 175);
/* oklch */ color: oklch(58.2% 0.225 334.6);
Tailwind
colors: {
  custom: {
    50: '#da78c7',
    500: '#c42faf',
    950: '#000000',
  },
}
SCSS
$custom: #c42faf;
$custom-light: #da78c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c42faf",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 308.456,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58239,
    "c": 0.22516,
    "h": 334.6
  },
  "luminance": 0.16864
}

Semantic roles & 50–950 ramp

primary
#C42FAF
secondary
#82CD8C
accent
#E45A43
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C42FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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