#C242B7#C242B7

#C242B7 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.0% C 0.208 H 331.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C242B7
RGBrgb(194, 66, 183)
HSLhsl(305, 51%, 51%)
HSVhsv(305, 66%, 76%)
CMYKcmyk(0%, 66%, 5.7%, 23.9%)
CIE-LABlab(50.44, 64.14, -36.27)
CIE-LCHlch(50.44, 73.69, 330.51°)
OKLaboklab(60% 0.1831 -0.0996)
OKLCHoklch(60% 0.208 331.5)
XYZxyz(32.7435, 18.7871, 46.6923)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242B7 #42C24D
analogous
#8D42C2 #C242B7 #C24277
triadic
#C242B7 #B7C242 #42B7C2
tetradic
#C242B7 #C28D42 #42C24D #4277C2
square
#C242B7 #C28D42 #42C24D #4277C2
split-complementary
#C242B7 #77C242 #42C28D
monochromatic
#682262 #96318E #C242B7 #D170C9 #E09FDA

Accessibility & contrast

On white

4.41
#C242B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#C242B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242B7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242B7#FFFFFF#000000##000000
##C242B71.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6DBA
Deuteranopia (green-blind)
#687EB4
Tritanopia (blue-blind)
#CA4F77
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c242b7;
/* rgb */ color: rgb(194, 66, 183);
/* oklch */ color: oklch(60.0% 0.208 331.5);
Tailwind
colors: {
  custom: {
    50: '#d880cd',
    500: '#c242b7',
    950: '#000000',
  },
}
SCSS
$custom: #c242b7;
$custom-light: #d880cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c242b7",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 305.156,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59997,
    "c": 0.20848,
    "h": 331.5
  },
  "luminance": 0.18785
}

Semantic roles & 50–950 ramp

primary
#C242B7
secondary
#94CC98
accent
#DB594D
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C242B7

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

Preview Lab → · Contrast checker → · Palette generator →

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