#C540B3#C540B3

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

Color values

HEX#C540B3
RGBrgb(197, 64, 179)
HSLhsl(308, 53%, 51%)
HSVhsv(308, 68%, 77%)
CMYKcmyk(0%, 67.5%, 9.1%, 22.7%)
CIE-LABlab(50.45, 65.00, -33.89)
CIE-LCHlch(50.45, 73.31, 332.46°)
OKLaboklab(60.03% 0.1881 -0.0927)
OKLCHoklch(60.03% 0.21 333.8)
XYZxyz(32.9962, 18.7945, 44.5289)
Luminance0.1879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B3 #40C552
analogous
#9440C5 #C540B3 #C54070
triadic
#C540B3 #B3C540 #40B3C5
tetradic
#C540B3 #C59440 #40C552 #4070C5
square
#C540B3 #C59440 #40C552 #4070C5
split-complementary
#C540B3 #70C540 #40C594
monochromatic
#6A2060 #992F8B #C540B3 #D36FC6 #E29ED8

Accessibility & contrast

On white

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

On black

4.76
#C540B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B3
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B3#FFFFFF#000000##000000
##C540B31.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6CB6
Deuteranopia (green-blind)
#6B7FB0
Tritanopia (blue-blind)
#CE4B74
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c540b3;
/* rgb */ color: rgb(197, 64, 179);
/* oklch */ color: oklch(60.0% 0.210 333.8);
Tailwind
colors: {
  custom: {
    50: '#da7fca',
    500: '#c540b3',
    950: '#000000',
  },
}
SCSS
$custom: #c540b3;
$custom-light: #da7fca;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b3",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 308.12,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60032,
    "c": 0.20971,
    "h": 333.8
  },
  "luminance": 0.18792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540B3

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

Preview Lab → · Contrast checker → · Palette generator →

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