#C740BF#C740BF

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

Color values

HEX#C740BF
RGBrgb(199, 64, 191)
HSLhsl(304, 55%, 52%)
HSVhsv(304, 68%, 78%)
CMYKcmyk(0%, 67.8%, 4%, 22%)
CIE-LABlab(51.35, 67.36, -39.43)
CIE-LCHlch(51.35, 78.05, 329.66°)
OKLaboklab(60.94% 0.1911 -0.1086)
OKLCHoklch(60.94% 0.22 330.4)
XYZxyz(34.7904, 19.5731, 51.2257)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C740BF #40C748
analogous
#8C40C7 #C740BF #C7407B
triadic
#C740BF #BFC740 #40BFC7
tetradic
#C740BF #C78C40 #40C748 #407BC7
square
#C740BF #C78C40 #40C748 #407BC7
split-complementary
#C740BF #7BC740 #40C78C
monochromatic
#6D2068 #9C2E96 #C740BF #D56FCF #E39FDF

Accessibility & contrast

On white

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

On black

4.91
#C740BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C740BF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C740BF#FFFFFF#000000##000000
##C740BF1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#346EC3
Deuteranopia (green-blind)
#6781BC
Tritanopia (blue-blind)
#CE507B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c740bf;
/* rgb */ color: rgb(199, 64, 191);
/* oklch */ color: oklch(60.9% 0.220 330.4);
Tailwind
colors: {
  custom: {
    50: '#dc80d3',
    500: '#c740bf',
    950: '#000000',
  },
}
SCSS
$custom: #c740bf;
$custom-light: #dc80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c740bf",
  "rgb": {
    "r": 199,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 303.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.21981,
    "h": 330.4
  },
  "luminance": 0.1957
}

Semantic roles & 50–950 ramp

primary
#C740BF
secondary
#94CF97
accent
#DE534A
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C740BF

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

Preview Lab → · Contrast checker → · Palette generator →

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