#C540C2#C540C2

#C540C2 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.221 H 328.8°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C540C2
RGBrgb(197, 64, 194)
HSLhsl(301, 53%, 51%)
HSVhsv(301, 68%, 77%)
CMYKcmyk(0%, 67.5%, 1.5%, 22.7%)
CIE-LABlab(51.19, 67.38, -41.44)
CIE-LCHlch(51.19, 79.10, 328.41°)
OKLaboklab(60.81% 0.1891 -0.1144)
OKLCHoklch(60.81% 0.221 328.8)
XYZxyz(34.5966, 19.4346, 52.9575)
Luminance0.1943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540C2 #40C543
analogous
#8540C5 #C540C2 #C5407F
triadic
#C540C2 #C2C540 #40C2C5
tetradic
#C540C2 #C58540 #40C543 #407FC5
square
#C540C2 #C58540 #40C543 #407FC5
split-complementary
#C540C2 #7FC540 #40C585
monochromatic
#6A2069 #992F97 #C540C2 #D36FD1 #E29EE0

Accessibility & contrast

On white

4.30
#C540C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#C540C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540C2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540C2#FFFFFF#000000##000000
##C540C21.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6FC6
Deuteranopia (green-blind)
#6480BF
Tritanopia (blue-blind)
#CC527C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c540c2;
/* rgb */ color: rgb(197, 64, 194);
/* oklch */ color: oklch(60.8% 0.221 328.8);
Tailwind
colors: {
  custom: {
    50: '#da80d5',
    500: '#c540c2',
    950: '#000000',
  },
}
SCSS
$custom: #c540c2;
$custom-light: #da80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c540c2",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 301.353,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60814,
    "c": 0.22107,
    "h": 328.8
  },
  "luminance": 0.19432
}

Semantic roles & 50–950 ramp

primary
#C540C2
secondary
#93CE94
accent
#DD4E4B
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C540C2

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

Preview Lab → · Contrast checker → · Palette generator →

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