#C540B1#C540B1

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

Color values

HEX#C540B1
RGBrgb(197, 64, 177)
HSLhsl(309, 53%, 51%)
HSVhsv(309, 68%, 77%)
CMYKcmyk(0%, 67.5%, 10.2%, 22.7%)
CIE-LABlab(50.35, 64.70, -32.87)
CIE-LCHlch(50.35, 72.57, 333.07°)
OKLaboklab(59.93% 0.1879 -0.0898)
OKLCHoklch(59.93% 0.208 334.5)
XYZxyz(32.7954, 18.7142, 43.4714)
Luminance0.1871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B1 #40C554
analogous
#9740C5 #C540B1 #C5406E
triadic
#C540B1 #B1C540 #40B1C5
tetradic
#C540B1 #C59740 #40C554 #406EC5
square
#C540B1 #C59740 #40C554 #406EC5
split-complementary
#C540B1 #6EC540 #40C597
monochromatic
#6A205F #992F89 #C540B1 #D36FC4 #E29ED7

Accessibility & contrast

On white

4.43
#C540B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#C540B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B1#FFFFFF#000000##000000
##C540B11.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c540b1;
/* rgb */ color: rgb(197, 64, 177);
/* oklch */ color: oklch(59.9% 0.208 334.5);
Tailwind
colors: {
  custom: {
    50: '#da7fc8',
    500: '#c540b1',
    950: '#000000',
  },
}
SCSS
$custom: #c540b1;
$custom-light: #da7fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b1",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 309.023,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59933,
    "c": 0.20824,
    "h": 334.5
  },
  "luminance": 0.18711
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540B1

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

Preview Lab → · Contrast checker → · Palette generator →

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