#C540B8#C540B8

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

Color values

HEX#C540B8
RGBrgb(197, 64, 184)
HSLhsl(306, 53%, 51%)
HSVhsv(306, 68%, 77%)
CMYKcmyk(0%, 67.5%, 6.6%, 22.7%)
CIE-LABlab(50.69, 65.78, -36.43)
CIE-LCHlch(50.69, 75.19, 331.02°)
OKLaboklab(60.29% 0.1886 -0.1)
OKLCHoklch(60.29% 0.213 332.1)
XYZxyz(33.5111, 19.0004, 47.2406)
Luminance0.1900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B8 #40C54D
analogous
#8F40C5 #C540B8 #C54075
triadic
#C540B8 #B8C540 #40B8C5
tetradic
#C540B8 #C58F40 #40C54D #4075C5
square
#C540B8 #C58F40 #40C54D #4075C5
split-complementary
#C540B8 #75C540 #40C58F
monochromatic
#6A2063 #992F8F #C540B8 #D36FC9 #E29EDB

Accessibility & contrast

On white

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

On black

4.80
#C540B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B8#FFFFFF#000000##000000
##C540B81.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#396DBB
Deuteranopia (green-blind)
#697FB5
Tritanopia (blue-blind)
#CD4D77
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c540b8;
/* rgb */ color: rgb(197, 64, 184);
/* oklch */ color: oklch(60.3% 0.213 332.1);
Tailwind
colors: {
  custom: {
    50: '#da7fce',
    500: '#c540b8',
    950: '#000000',
  },
}
SCSS
$custom: #c540b8;
$custom-light: #da7fce;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b8",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 305.865,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.21342,
    "h": 332.1
  },
  "luminance": 0.18998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540B8

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

Preview Lab → · Contrast checker → · Palette generator →

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