#C242B2#C242B2

#C242B2 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.7% C 0.205 H 333.2°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#C242B2
RGBrgb(194, 66, 178)
HSLhsl(308, 51%, 51%)
HSVhsv(308, 66%, 76%)
CMYKcmyk(0%, 66%, 8.2%, 23.9%)
CIE-LABlab(50.20, 63.35, -33.73)
CIE-LCHlch(50.20, 71.77, 331.97°)
OKLaboklab(59.74% 0.1827 -0.0923)
OKLCHoklch(59.74% 0.205 333.2)
XYZxyz(32.2324, 18.5827, 44.0000)
Luminance0.1858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242B2 #42C252
analogous
#9242C2 #C242B2 #C24272
triadic
#C242B2 #B2C242 #42B2C2
tetradic
#C242B2 #C29242 #42C252 #4272C2
square
#C242B2 #C29242 #42C252 #4272C2
split-complementary
#C242B2 #72C242 #42C292
monochromatic
#68225F #96318A #C242B2 #D170C5 #E09FD8

Accessibility & contrast

On white

4.45
#C242B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#C242B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242B2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242B2#FFFFFF#000000##000000
##C242B21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6CB5
Deuteranopia (green-blind)
#6A7EAF
Tritanopia (blue-blind)
#CA4D74
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c242b2;
/* rgb */ color: rgb(194, 66, 178);
/* oklch */ color: oklch(59.7% 0.205 333.2);
Tailwind
colors: {
  custom: {
    50: '#d880c9',
    500: '#c242b2',
    950: '#000000',
  },
}
SCSS
$custom: #c242b2;
$custom-light: #d880c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c242b2",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 307.5,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.59743,
    "c": 0.20468,
    "h": 333.2
  },
  "luminance": 0.1858
}

Semantic roles & 50–950 ramp

primary
#C242B2
secondary
#94CC9B
accent
#DB5F4D
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C242B2

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

Preview Lab → · Contrast checker → · Palette generator →

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