#C242B4#C242B4

#C242B4 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.8% C 0.206 H 332.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C242B4
RGBrgb(194, 66, 180)
HSLhsl(307, 51%, 51%)
HSVhsv(307, 66%, 76%)
CMYKcmyk(0%, 66%, 7.2%, 23.9%)
CIE-LABlab(50.29, 63.66, -34.75)
CIE-LCHlch(50.29, 72.53, 331.37°)
OKLaboklab(59.84% 0.1829 -0.0952)
OKLCHoklch(59.84% 0.206 332.5)
XYZxyz(32.4346, 18.6636, 45.0653)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242B4 #42C250
analogous
#9042C2 #C242B4 #C24274
triadic
#C242B4 #B4C242 #42B4C2
tetradic
#C242B4 #C29042 #42C250 #4274C2
square
#C242B4 #C29042 #42C250 #4274C2
split-complementary
#C242B4 #74C242 #42C290
monochromatic
#682260 #96318B #C242B4 #D170C6 #E09FD9

Accessibility & contrast

On white

4.44
#C242B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C242B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242B4
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242B4#FFFFFF#000000##000000
##C242B41.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6CB7
Deuteranopia (green-blind)
#697EB1
Tritanopia (blue-blind)
#CA4E75
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c242b4;
/* rgb */ color: rgb(194, 66, 180);
/* oklch */ color: oklch(59.8% 0.206 332.5);
Tailwind
colors: {
  custom: {
    50: '#d880cb',
    500: '#c242b4',
    950: '#000000',
  },
}
SCSS
$custom: #c242b4;
$custom-light: #d880cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c242b4",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 306.563,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59844,
    "c": 0.20619,
    "h": 332.5
  },
  "luminance": 0.18661
}

Semantic roles & 50–950 ramp

primary
#C242B4
secondary
#94CC9A
accent
#DB5D4D
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C242B4

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

Preview Lab → · Contrast checker → · Palette generator →

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