#C742C7#C742C7

#C742C7 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.224 H 327.9°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C742C7
RGBrgb(199, 66, 199)
HSLhsl(300, 54%, 52%)
HSVhsv(300, 67%, 78%)
CMYKcmyk(0%, 66.8%, 0%, 22%)
CIE-LABlab(52.02, 67.92, -42.99)
CIE-LCHlch(52.02, 80.38, 327.67°)
OKLaboklab(61.56% 0.1894 -0.1189)
OKLCHoklch(61.56% 0.224 327.9)
XYZxyz(35.8097, 20.1645, 56.0278)
Luminance0.2016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C742C7 #42C742
analogous
#8542C7 #C742C7 #C74285
triadic
#C742C7 #C7C742 #42C7C7
tetradic
#C742C7 #C78542 #42C742 #4285C7
square
#C742C7 #C78542 #42C742 #4285C7
split-complementary
#C742C7 #85C742 #42C785
monochromatic
#6E216E #9D2F9D #C742C7 #D571D5 #E3A0E3

Accessibility & contrast

On white

4.17
#C742C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#C742C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C742C7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C742C7#FFFFFF#000000##000000
##C742C71.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E71CB
Deuteranopia (green-blind)
#6482C4
Tritanopia (blue-blind)
#CD557F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c742c7;
/* rgb */ color: rgb(199, 66, 199);
/* oklch */ color: oklch(61.6% 0.224 327.9);
Tailwind
colors: {
  custom: {
    50: '#dc81d8',
    500: '#c742c7',
    950: '#000000',
  },
}
SCSS
$custom: #c742c7;
$custom-light: #dc81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c742c7",
  "rgb": {
    "r": 199,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 300,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.61557,
    "c": 0.2236,
    "h": 327.9
  },
  "luminance": 0.20162
}

Semantic roles & 50–950 ramp

primary
#C742C7
secondary
#95D095
accent
#DE4A4A
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C742C7

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

Preview Lab → · Contrast checker → · Palette generator →

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