#C540B4#C540B4

#C540B4 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.1% C 0.210 H 333.4°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C540B4
RGBrgb(197, 64, 180)
HSLhsl(308, 53%, 51%)
HSVhsv(308, 68%, 77%)
CMYKcmyk(0%, 67.5%, 8.6%, 22.7%)
CIE-LABlab(50.49, 65.16, -34.40)
CIE-LCHlch(50.49, 73.68, 332.17°)
OKLaboklab(60.08% 0.1882 -0.0942)
OKLCHoklch(60.08% 0.21 333.4)
XYZxyz(33.0977, 18.8351, 45.0635)
Luminance0.1883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B4 #40C551
analogous
#9340C5 #C540B4 #C54071
triadic
#C540B4 #B4C540 #40B4C5
tetradic
#C540B4 #C59340 #40C551 #4071C5
square
#C540B4 #C59340 #40C551 #4071C5
split-complementary
#C540B4 #71C540 #40C593
monochromatic
#6A2061 #992F8C #C540B4 #D36FC6 #E29ED9

Accessibility & contrast

On white

4.41
#C540B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#C540B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B4#FFFFFF#000000##000000
##C540B41.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6CB7
Deuteranopia (green-blind)
#6A7FB1
Tritanopia (blue-blind)
#CE4B75
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c540b4;
/* rgb */ color: rgb(197, 64, 180);
/* oklch */ color: oklch(60.1% 0.210 333.4);
Tailwind
colors: {
  custom: {
    50: '#da7fcb',
    500: '#c540b4',
    950: '#000000',
  },
}
SCSS
$custom: #c540b4;
$custom-light: #da7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b4",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 307.669,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60082,
    "c": 0.21045,
    "h": 333.4
  },
  "luminance": 0.18832
}

Semantic roles & 50–950 ramp

primary
#C540B4
secondary
#93CE9B
accent
#DD5E4B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540B4

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

Preview Lab → · Contrast checker → · Palette generator →

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