#C540B7#C540B7

#C540B7 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.2% C 0.213 H 332.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C540B7
RGBrgb(197, 64, 183)
HSLhsl(306, 53%, 51%)
HSVhsv(306, 68%, 77%)
CMYKcmyk(0%, 67.5%, 7.1%, 22.7%)
CIE-LABlab(50.64, 65.62, -35.92)
CIE-LCHlch(50.64, 74.81, 331.30°)
OKLaboklab(60.24% 0.1885 -0.0985)
OKLCHoklch(60.24% 0.213 332.4)
XYZxyz(33.4067, 18.9586, 46.6905)
Luminance0.1896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B7 #40C54E
analogous
#9040C5 #C540B7 #C54074
triadic
#C540B7 #B7C540 #40B7C5
tetradic
#C540B7 #C59040 #40C54E #4074C5
square
#C540B7 #C59040 #40C54E #4074C5
split-complementary
#C540B7 #74C540 #40C590
monochromatic
#6A2063 #992F8E #C540B7 #D36FC9 #E29EDA

Accessibility & contrast

On white

4.38
#C540B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#C540B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B7#FFFFFF#000000##000000
##C540B71.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6CBA
Deuteranopia (green-blind)
#697FB4
Tritanopia (blue-blind)
#CD4D76
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c540b7;
/* rgb */ color: rgb(197, 64, 183);
/* oklch */ color: oklch(60.2% 0.213 332.4);
Tailwind
colors: {
  custom: {
    50: '#da7fcd',
    500: '#c540b7',
    950: '#000000',
  },
}
SCSS
$custom: #c540b7;
$custom-light: #da7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b7",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 306.316,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60235,
    "c": 0.21267,
    "h": 332.4
  },
  "luminance": 0.18956
}

Semantic roles & 50–950 ramp

primary
#C540B7
secondary
#93CE99
accent
#DD5A4B
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540B7

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

Preview Lab → · Contrast checker → · Palette generator →

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