#C742CC#C742CC

#C742CC is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.228 H 326.4°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#C742CC
RGBrgb(199, 66, 204)
HSLhsl(298, 58%, 53%)
HSVhsv(298, 68%, 80%)
CMYKcmyk(2.5%, 67.6%, 0%, 20%)
CIE-LABlab(52.29, 68.76, -45.44)
CIE-LCHlch(52.29, 82.42, 326.54°)
OKLaboklab(61.83% 0.1895 -0.126)
OKLCHoklch(61.83% 0.228 326.4)
XYZxyz(36.3998, 20.4006, 59.1355)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C742CC #47CC42
analogous
#8242CC #C742CC #CC428C
triadic
#C742CC #CCC742 #42CCC7
tetradic
#C742CC #CC8242 #47CC42 #428CCC
square
#C742CC #CC8242 #47CC42 #428CCC
split-complementary
#C742CC #8CCC42 #42CC82
monochromatic
#711F74 #A02CA4 #C742CC #D572D9 #E4A2E6

Accessibility & contrast

On white

4.13
#C742CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#C742CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C742CC
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C742CC#FFFFFF#000000##000000
##C742CC1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2772D0
Deuteranopia (green-blind)
#6183C8
Tritanopia (blue-blind)
#CC5782
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #c742cc;
/* rgb */ color: rgb(199, 66, 204);
/* oklch */ color: oklch(61.8% 0.228 326.4);
Tailwind
colors: {
  custom: {
    50: '#dc81dc',
    500: '#c742cc',
    950: '#000000',
  },
}
SCSS
$custom: #c742cc;
$custom-light: #dc81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#c742cc",
  "rgb": {
    "r": 199,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 297.826,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61833,
    "c": 0.22757,
    "h": 326.4
  },
  "luminance": 0.20398
}

Semantic roles & 50–950 ramp

primary
#C742CC
secondary
#99D397
accent
#E1474D
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C742CC

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

Preview Lab → · Contrast checker → · Palette generator →

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