#C540C8#C540C8

#C540C8 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.226 H 327.0°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#C540C8
RGBrgb(197, 64, 200)
HSLhsl(299, 55%, 52%)
HSVhsv(299, 68%, 78%)
CMYKcmyk(1.5%, 68%, 0%, 21.6%)
CIE-LABlab(51.51, 68.37, -44.40)
CIE-LCHlch(51.51, 81.52, 327.00°)
OKLaboklab(61.14% 0.1893 -0.123)
OKLCHoklch(61.14% 0.226 327)
XYZxyz(35.2841, 19.7096, 56.5783)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540C8 #43C840
analogous
#8140C8 #C540C8 #C84087
triadic
#C540C8 #C8C540 #40C8C5
tetradic
#C540C8 #C88140 #43C840 #4087C8
square
#C540C8 #C88140 #43C840 #4087C8
split-complementary
#C540C8 #87C840 #40C881
monochromatic
#6C206E #9B2D9D #C540C8 #D370D6 #E29FE3

Accessibility & contrast

On white

4.25
#C540C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#C540C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540C8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540C8#FFFFFF#000000##000000
##C540C81.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2770CC
Deuteranopia (green-blind)
#6081C5
Tritanopia (blue-blind)
#CA547F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c540c8;
/* rgb */ color: rgb(197, 64, 200);
/* oklch */ color: oklch(61.1% 0.226 327.0);
Tailwind
colors: {
  custom: {
    50: '#da80d9',
    500: '#c540c8',
    950: '#000000',
  },
}
SCSS
$custom: #c540c8;
$custom-light: #da80d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c540c8",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 298.676,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61143,
    "c": 0.22578,
    "h": 327
  },
  "luminance": 0.19707
}

Semantic roles & 50–950 ramp

primary
#C540C8
secondary
#95D094
accent
#DF494C
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #C540C8

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

Preview Lab → · Contrast checker → · Palette generator →

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