#C242D8#C242D8

#C242D8 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.8% C 0.235 H 321.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#C242D8
RGBrgb(194, 66, 216)
HSLhsl(291, 66%, 55%)
HSVhsv(291, 69%, 85%)
CMYKcmyk(10.2%, 69.4%, 0%, 15.3%)
CIE-LABlab(52.20, 69.75, -52.48)
CIE-LCHlch(52.20, 87.28, 323.04°)
OKLaboklab(61.84% 0.1838 -0.1467)
OKLCHoklch(61.84% 0.235 321.4)
XYZxyz(36.5896, 20.3256, 66.9484)
Luminance0.2032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C242D8 #58D842
analogous
#7742D8 #C242D8 #D842A3
triadic
#C242D8 #D8C242 #42D8C2
tetradic
#C242D8 #D87742 #58D842 #42A3D8
square
#C242D8 #D87742 #58D842 #42A3D8
split-complementary
#C242D8 #A3D842 #42D877
monochromatic
#751B84 #A226B7 #C242D8 #D275E2 #E3A7ED

Accessibility & contrast

On white

4.15
#C242D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#C242D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C242D8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C242D8#FFFFFF#000000##000000
##C242D81.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#5481D4
Tritanopia (blue-blind)
#C45D89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c242d8;
/* rgb */ color: rgb(194, 66, 216);
/* oklch */ color: oklch(61.8% 0.235 321.4);
Tailwind
colors: {
  custom: {
    50: '#d881e5',
    500: '#c242d8',
    950: '#000000',
  },
}
SCSS
$custom: #c242d8;
$custom-light: #d881e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c242d8",
  "rgb": {
    "r": 194,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 291.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.61839,
    "c": 0.23511,
    "h": 321.4
  },
  "luminance": 0.20324
}

Semantic roles & 50–950 ramp

primary
#C242D8
secondary
#A5DA9C
accent
#E93F58
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C242D8

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

Preview Lab → · Contrast checker → · Palette generator →

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