#C540B0#C540B0

#C540B0 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.9% C 0.208 H 334.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C540B0
RGBrgb(197, 64, 176)
HSLhsl(309, 53%, 51%)
HSVhsv(309, 68%, 77%)
CMYKcmyk(0%, 67.5%, 10.7%, 22.7%)
CIE-LABlab(50.30, 64.55, -32.36)
CIE-LCHlch(50.30, 72.20, 333.37°)
OKLaboklab(59.88% 0.1878 -0.0883)
OKLCHoklch(59.88% 0.208 334.8)
XYZxyz(32.6961, 18.6744, 42.9484)
Luminance0.1867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B0 #40C555
analogous
#9740C5 #C540B0 #C5406D
triadic
#C540B0 #B0C540 #40B0C5
tetradic
#C540B0 #C59740 #40C555 #406DC5
square
#C540B0 #C59740 #40C555 #406DC5
split-complementary
#C540B0 #6DC540 #40C597
monochromatic
#6A205F #992F88 #C540B0 #D36FC3 #E29ED7

Accessibility & contrast

On white

4.44
#C540B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C540B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B0
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B0#FFFFFF#000000##000000
##C540B01.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6BB3
Deuteranopia (green-blind)
#6C7FAD
Tritanopia (blue-blind)
#CE4A73
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c540b0;
/* rgb */ color: rgb(197, 64, 176);
/* oklch */ color: oklch(59.9% 0.208 334.8);
Tailwind
colors: {
  custom: {
    50: '#da7fc8',
    500: '#c540b0',
    950: '#000000',
  },
}
SCSS
$custom: #c540b0;
$custom-light: #da7fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b0",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 309.474,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59883,
    "c": 0.20752,
    "h": 334.8
  },
  "luminance": 0.18672
}

Semantic roles & 50–950 ramp

primary
#C540B0
secondary
#93CE9C
accent
#DD624B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540B0

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

Preview Lab → · Contrast checker → · Palette generator →

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