#C540BA#C540BA

#C540BA is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.4% C 0.215 H 331.4°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#C540BA
RGBrgb(197, 64, 186)
HSLhsl(305, 53%, 51%)
HSVhsv(305, 68%, 77%)
CMYKcmyk(0%, 67.5%, 5.6%, 22.7%)
CIE-LABlab(50.79, 66.09, -37.44)
CIE-LCHlch(50.79, 75.96, 330.47°)
OKLaboklab(60.39% 0.1887 -0.1029)
OKLCHoklch(60.39% 0.215 331.4)
XYZxyz(33.7222, 19.0849, 48.3525)
Luminance0.1908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540BA #40C54B
analogous
#8D40C5 #C540BA #C54077
triadic
#C540BA #BAC540 #40BAC5
tetradic
#C540BA #C58D40 #40C54B #4077C5
square
#C540BA #C58D40 #40C54B #4077C5
split-complementary
#C540BA #77C540 #40C58D
monochromatic
#6A2064 #992F90 #C540BA #D36FCB #E29EDC

Accessibility & contrast

On white

4.36
#C540BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#C540BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540BA
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540BA#FFFFFF#000000##000000
##C540BA1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#376DBE
Deuteranopia (green-blind)
#6880B7
Tritanopia (blue-blind)
#CD4E78
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c540ba;
/* rgb */ color: rgb(197, 64, 186);
/* oklch */ color: oklch(60.4% 0.215 331.4);
Tailwind
colors: {
  custom: {
    50: '#da80cf',
    500: '#c540ba',
    950: '#000000',
  },
}
SCSS
$custom: #c540ba;
$custom-light: #da80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c540ba",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 304.962,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60389,
    "c": 0.21493,
    "h": 331.4
  },
  "luminance": 0.19082
}

Semantic roles & 50–950 ramp

primary
#C540BA
secondary
#93CE98
accent
#DD574B
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C540BA

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

Preview Lab → · Contrast checker → · Palette generator →

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