#C540C3#C540C3

#C540C3 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.9% C 0.222 H 328.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C540C3
RGBrgb(197, 64, 195)
HSLhsl(301, 53%, 51%)
HSVhsv(301, 68%, 77%)
CMYKcmyk(0%, 67.5%, 1%, 22.7%)
CIE-LABlab(51.24, 67.54, -41.93)
CIE-LCHlch(51.24, 79.50, 328.17°)
OKLaboklab(60.87% 0.1892 -0.1159)
OKLCHoklch(60.87% 0.222 328.5)
XYZxyz(34.7093, 19.4797, 53.5510)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540C3 #40C542
analogous
#8440C5 #C540C3 #C54080
triadic
#C540C3 #C3C540 #40C3C5
tetradic
#C540C3 #C58440 #40C542 #4080C5
square
#C540C3 #C58440 #40C542 #4080C5
split-complementary
#C540C3 #80C540 #40C584
monochromatic
#6A2069 #992F98 #C540C3 #D36FD2 #E29EE0

Accessibility & contrast

On white

4.29
#C540C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#C540C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540C3
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540C3#FFFFFF#000000##000000
##C540C31.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6FC7
Deuteranopia (green-blind)
#6380C0
Tritanopia (blue-blind)
#CB527D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c540c3;
/* rgb */ color: rgb(197, 64, 195);
/* oklch */ color: oklch(60.9% 0.222 328.5);
Tailwind
colors: {
  custom: {
    50: '#da80d5',
    500: '#c540c3',
    950: '#000000',
  },
}
SCSS
$custom: #c540c3;
$custom-light: #da80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c540c3",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 300.902,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60868,
    "c": 0.22185,
    "h": 328.5
  },
  "luminance": 0.19477
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540C3

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

Preview Lab → · Contrast checker → · Palette generator →

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