#C540B6#C540B6

#C540B6 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.2% C 0.212 H 332.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C540B6
RGBrgb(197, 64, 182)
HSLhsl(307, 53%, 51%)
HSVhsv(307, 68%, 77%)
CMYKcmyk(0%, 67.5%, 7.6%, 22.7%)
CIE-LABlab(50.59, 65.47, -35.42)
CIE-LCHlch(50.59, 74.43, 331.59°)
OKLaboklab(60.18% 0.1884 -0.0971)
OKLCHoklch(60.18% 0.212 332.7)
XYZxyz(33.3030, 18.9172, 46.1443)
Luminance0.1892 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B6 #40C54F
analogous
#9140C5 #C540B6 #C54073
triadic
#C540B6 #B6C540 #40B6C5
tetradic
#C540B6 #C59140 #40C54F #4073C5
square
#C540B6 #C59140 #40C54F #4073C5
split-complementary
#C540B6 #73C540 #40C591
monochromatic
#6A2062 #992F8D #C540B6 #D36FC8 #E29EDA

Accessibility & contrast

On white

4.39
#C540B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#C540B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B6
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B6#FFFFFF#000000##000000
##C540B61.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB9
Deuteranopia (green-blind)
#697FB3
Tritanopia (blue-blind)
#CD4C76
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c540b6;
/* rgb */ color: rgb(197, 64, 182);
/* oklch */ color: oklch(60.2% 0.212 332.7);
Tailwind
colors: {
  custom: {
    50: '#da7fcc',
    500: '#c540b6',
    950: '#000000',
  },
}
SCSS
$custom: #c540b6;
$custom-light: #da7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b6",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 306.767,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60184,
    "c": 0.21193,
    "h": 332.7
  },
  "luminance": 0.18915
}

Semantic roles & 50–950 ramp

primary
#C540B6
secondary
#93CE9A
accent
#DD5B4B
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540B6

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

Preview Lab → · Contrast checker → · Palette generator →

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