#C742BA#C742BA

#C742BA is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.9% C 0.214 H 332.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#C742BA
RGBrgb(199, 66, 186)
HSLhsl(306, 54%, 52%)
HSVhsv(306, 67%, 78%)
CMYKcmyk(0%, 66.8%, 6.5%, 22%)
CIE-LABlab(51.37, 65.83, -36.50)
CIE-LCHlch(51.37, 75.27, 330.99°)
OKLaboklab(60.87% 0.1886 -0.1002)
OKLCHoklch(60.87% 0.214 332)
XYZxyz(34.3644, 19.5864, 48.4155)
Luminance0.1958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C742BA #42C74F
analogous
#9242C7 #C742BA #C74277
triadic
#C742BA #BAC742 #42BAC7
tetradic
#C742BA #C79242 #42C74F #4277C7
square
#C742BA #C79242 #42C74F #4277C7
split-complementary
#C742BA #77C742 #42C792
monochromatic
#6E2166 #9D2F92 #C742BA #D571CB #E3A0DC

Accessibility & contrast

On white

4.27
#C742BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#C742BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C742BA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C742BA#FFFFFF#000000##000000
##C742BA1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6EBD
Deuteranopia (green-blind)
#6A81B7
Tritanopia (blue-blind)
#CF4F79
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c742ba;
/* rgb */ color: rgb(199, 66, 186);
/* oklch */ color: oklch(60.9% 0.214 332.0);
Tailwind
colors: {
  custom: {
    50: '#db81cf',
    500: '#c742ba',
    950: '#000000',
  },
}
SCSS
$custom: #c742ba;
$custom-light: #db81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c742ba",
  "rgb": {
    "r": 199,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 305.865,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.6087,
    "c": 0.21358,
    "h": 332
  },
  "luminance": 0.19584
}

Semantic roles & 50–950 ramp

primary
#C742BA
secondary
#95D09B
accent
#DE594A
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C742BA

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

Preview Lab → · Contrast checker → · Palette generator →

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