#C540B9#C540B9

#C540B9 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.3% C 0.214 H 331.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C540B9
RGBrgb(197, 64, 185)
HSLhsl(305, 53%, 51%)
HSVhsv(305, 68%, 77%)
CMYKcmyk(0%, 67.5%, 6.1%, 22.7%)
CIE-LABlab(50.74, 65.94, -36.93)
CIE-LCHlch(50.74, 75.58, 330.75°)
OKLaboklab(60.34% 0.1886 -0.1014)
OKLCHoklch(60.34% 0.214 331.7)
XYZxyz(33.6163, 19.0425, 47.7946)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B9 #40C54C
analogous
#8F40C5 #C540B9 #C54076
triadic
#C540B9 #B9C540 #40B9C5
tetradic
#C540B9 #C58F40 #40C54C #4076C5
square
#C540B9 #C58F40 #40C54C #4076C5
split-complementary
#C540B9 #76C540 #40C58F
monochromatic
#6A2064 #992F90 #C540B9 #D36FCA #E29EDB

Accessibility & contrast

On white

4.37
#C540B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#C540B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B9
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B9#FFFFFF#000000##000000
##C540B91.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#386DBC
Deuteranopia (green-blind)
#687FB6
Tritanopia (blue-blind)
#CD4E77
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c540b9;
/* rgb */ color: rgb(197, 64, 185);
/* oklch */ color: oklch(60.3% 0.214 331.7);
Tailwind
colors: {
  custom: {
    50: '#da80ce',
    500: '#c540b9',
    950: '#000000',
  },
}
SCSS
$custom: #c540b9;
$custom-light: #da80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b9",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 305.414,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60338,
    "c": 0.21418,
    "h": 331.7
  },
  "luminance": 0.1904
}

Semantic roles & 50–950 ramp

primary
#C540B9
secondary
#93CE98
accent
#DD584B
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540B9

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

Preview Lab → · Contrast checker → · Palette generator →

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