#C242C7#C242C7

#C242C7 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.9% C 0.221 H 326.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C242C7
RGBrgb(194, 66, 199)
HSLhsl(298, 54%, 52%)
HSVhsv(298, 67%, 78%)
CMYKcmyk(2.5%, 66.8%, 0%, 22%)
CIE-LABlab(51.26, 66.78, -44.25)
CIE-LCHlch(51.26, 80.11, 326.47°)
OKLaboklab(60.86% 0.184 -0.1227)
OKLCHoklch(60.86% 0.221 326.3)
XYZxyz(34.5045, 19.4915, 55.9666)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242C7 #47C742
analogous
#7F42C7 #C242C7 #C7428A
triadic
#C242C7 #C7C242 #42C7C2
tetradic
#C242C7 #C77F42 #47C742 #428AC7
square
#C242C7 #C77F42 #47C742 #428AC7
split-complementary
#C242C7 #8AC742 #42C77F
monochromatic
#6B216E #992F9D #C242C7 #D171D5 #E0A0E3

Accessibility & contrast

On white

4.29
#C242C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#C242C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242C7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242C7#FFFFFF#000000##000000
##C242C71.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2970CB
Deuteranopia (green-blind)
#5F80C4
Tritanopia (blue-blind)
#C7567F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c242c7;
/* rgb */ color: rgb(194, 66, 199);
/* oklch */ color: oklch(60.9% 0.221 326.3);
Tailwind
colors: {
  custom: {
    50: '#d881d8',
    500: '#c242c7',
    950: '#000000',
  },
}
SCSS
$custom: #c242c7;
$custom-light: #d881d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c242c7",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 297.744,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60855,
    "c": 0.22111,
    "h": 326.3
  },
  "luminance": 0.19489
}

Semantic roles & 50–950 ramp

primary
#C242C7
secondary
#97D095
accent
#DE4A50
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C242C7

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

Preview Lab → · Contrast checker → · Palette generator →

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