#C540B5#C540B5

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

Color values

HEX#C540B5
RGBrgb(197, 64, 181)
HSLhsl(307, 53%, 51%)
HSVhsv(307, 68%, 77%)
CMYKcmyk(0%, 67.5%, 8.1%, 22.7%)
CIE-LABlab(50.54, 65.31, -34.91)
CIE-LCHlch(50.54, 74.06, 331.88°)
OKLaboklab(60.13% 0.1883 -0.0956)
OKLCHoklch(60.13% 0.211 333.1)
XYZxyz(33.2000, 18.8760, 45.6019)
Luminance0.1887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B5 #40C550
analogous
#9240C5 #C540B5 #C54072
triadic
#C540B5 #B5C540 #40B5C5
tetradic
#C540B5 #C59240 #40C550 #4072C5
square
#C540B5 #C59240 #40C550 #4072C5
split-complementary
#C540B5 #72C540 #40C592
monochromatic
#6A2061 #992F8C #C540B5 #D36FC7 #E29ED9

Accessibility & contrast

On white

4.40
#C540B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C540B5#FFFFFF#000000##000000
##C540B51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB8
Deuteranopia (green-blind)
#6A7FB2
Tritanopia (blue-blind)
#CE4C75
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c540b5;
/* rgb */ color: rgb(197, 64, 181);
/* oklch */ color: oklch(60.1% 0.211 333.1);
Tailwind
colors: {
  custom: {
    50: '#da7fcb',
    500: '#c540b5',
    950: '#000000',
  },
}
SCSS
$custom: #c540b5;
$custom-light: #da7fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b5",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 307.218,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60133,
    "c": 0.21119,
    "h": 333.1
  },
  "luminance": 0.18873
}

Semantic roles & 50–950 ramp

primary
#C540B5
secondary
#93CE9A
accent
#DD5D4B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540B5

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

Preview Lab → · Contrast checker → · Palette generator →

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