#C242BA#C242BA

#C242BA is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.2% C 0.211 H 330.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C242BA
RGBrgb(194, 66, 186)
HSLhsl(304, 51%, 51%)
HSVhsv(304, 66%, 76%)
CMYKcmyk(0%, 66%, 4.1%, 23.9%)
CIE-LABlab(50.59, 64.62, -37.79)
CIE-LCHlch(50.59, 74.86, 329.69°)
OKLaboklab(60.15% 0.1834 -0.104)
OKLCHoklch(60.15% 0.211 330.4)
XYZxyz(33.0591, 18.9134, 48.3543)
Luminance0.1891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242BA #42C24A
analogous
#8A42C2 #C242BA #C2427A
triadic
#C242BA #BAC242 #42BAC2
tetradic
#C242BA #C28A42 #42C24A #427AC2
square
#C242BA #C28A42 #42C24A #427AC2
split-complementary
#C242BA #7AC242 #42C28A
monochromatic
#682264 #963190 #C242BA #D170CB #E09FDC

Accessibility & contrast

On white

4.39
#C242BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#C242BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242BA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242BA#FFFFFF#000000##000000
##C242BA1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#386DBD
Deuteranopia (green-blind)
#667FB7
Tritanopia (blue-blind)
#C95078
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c242ba;
/* rgb */ color: rgb(194, 66, 186);
/* oklch */ color: oklch(60.2% 0.211 330.4);
Tailwind
colors: {
  custom: {
    50: '#d880cf',
    500: '#c242ba',
    950: '#000000',
  },
}
SCSS
$custom: #c242ba;
$custom-light: #d880cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c242ba",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 303.75,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.60153,
    "c": 0.2108,
    "h": 330.4
  },
  "luminance": 0.18911
}

Semantic roles & 50–950 ramp

primary
#C242BA
secondary
#94CC97
accent
#DB564D
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C242BA

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

Preview Lab → · Contrast checker → · Palette generator →

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