#C42FB7#C42FB7

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

Color values

HEX#C42FB7
RGBrgb(196, 47, 183)
HSLhsl(305, 61%, 48%)
HSVhsv(305, 76%, 77%)
CMYKcmyk(0%, 76%, 6.6%, 23.1%)
CIE-LABlab(48.50, 71.01, -39.31)
CIE-LCHlch(48.50, 81.16, 331.03°)
OKLaboklab(58.66% 0.2038 -0.1082)
OKLCHoklch(58.66% 0.231 332)
XYZxyz(32.3288, 17.1904, 46.4060)
Luminance0.1719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C42FB7 #2FC43C
analogous
#872FC4 #C42FB7 #C42F6C
triadic
#C42FB7 #B7C42F #2FB7C4
tetradic
#C42FB7 #C4872F #2FC43C #2F6CC4
square
#C42FB7 #C4872F #2FC43C #2F6CC4
split-complementary
#C42FB7 #6CC42F #2FC487
monochromatic
#61175B #932389 #C42FB7 #D759CC #E38ADB

Accessibility & contrast

On white

4.73
#C42FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#C42FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C42FB7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C42FB7#FFFFFF#000000##FFFFFF
##C42FB71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2366BB
Deuteranopia (green-blind)
#617AB3
Tritanopia (blue-blind)
#CC4171
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c42fb7;
/* rgb */ color: rgb(196, 47, 183);
/* oklch */ color: oklch(58.7% 0.231 332.0);
Tailwind
colors: {
  custom: {
    50: '#da78cd',
    500: '#c42fb7',
    950: '#000000',
  },
}
SCSS
$custom: #c42fb7;
$custom-light: #da78cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c42fb7",
  "rgb": {
    "r": 196,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 305.235,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58663,
    "c": 0.23071,
    "h": 332
  },
  "luminance": 0.17188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C42FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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