#C540BF#C540BF

#C540BF is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.7% C 0.219 H 329.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C540BF
RGBrgb(197, 64, 191)
HSLhsl(303, 53%, 51%)
HSVhsv(303, 68%, 77%)
CMYKcmyk(0%, 67.5%, 3%, 22.7%)
CIE-LABlab(51.04, 66.89, -39.94)
CIE-LCHlch(51.04, 77.91, 329.16°)
OKLaboklab(60.65% 0.189 -0.1101)
OKLCHoklch(60.65% 0.219 329.8)
XYZxyz(34.2631, 19.3012, 51.2010)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540BF #40C546
analogous
#8840C5 #C540BF #C5407C
triadic
#C540BF #BFC540 #40BFC5
tetradic
#C540BF #C58840 #40C546 #407CC5
square
#C540BF #C58840 #40C546 #407CC5
split-complementary
#C540BF #7CC540 #40C588
monochromatic
#6A2067 #992F94 #C540BF #D36FCF #E29EDE

Accessibility & contrast

On white

4.32
#C540BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C540BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540BF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540BF#FFFFFF#000000##000000
##C540BF1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#326EC3
Deuteranopia (green-blind)
#6580BC
Tritanopia (blue-blind)
#CC507B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c540bf;
/* rgb */ color: rgb(197, 64, 191);
/* oklch */ color: oklch(60.7% 0.219 329.8);
Tailwind
colors: {
  custom: {
    50: '#da80d3',
    500: '#c540bf',
    950: '#000000',
  },
}
SCSS
$custom: #c540bf;
$custom-light: #da80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c540bf",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 302.707,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60652,
    "c": 0.21875,
    "h": 329.8
  },
  "luminance": 0.19299
}

Semantic roles & 50–950 ramp

primary
#C540BF
secondary
#93CE96
accent
#DD524B
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C540BF

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

Preview Lab → · Contrast checker → · Palette generator →

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