#C540AF#C540AF

#C540AF is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.8% C 0.207 H 335.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#C540AF
RGBrgb(197, 64, 175)
HSLhsl(310, 53%, 51%)
HSVhsv(310, 68%, 77%)
CMYKcmyk(0%, 67.5%, 11.2%, 22.7%)
CIE-LABlab(50.26, 64.40, -31.85)
CIE-LCHlch(50.26, 71.84, 333.69°)
OKLaboklab(59.83% 0.1877 -0.0868)
OKLCHoklch(59.83% 0.207 335.2)
XYZxyz(32.5976, 18.6350, 42.4292)
Luminance0.1863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540AF #40C556
analogous
#9840C5 #C540AF #C5406C
triadic
#C540AF #AFC540 #40AFC5
tetradic
#C540AF #C59840 #40C556 #406CC5
square
#C540AF #C59840 #40C556 #406CC5
split-complementary
#C540AF #6CC540 #40C598
monochromatic
#6A205E #992F88 #C540AF #D36FC3 #E29ED6

Accessibility & contrast

On white

4.44
#C540AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#C540AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540AF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540AF#FFFFFF#000000##000000
##C540AF1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#406BB2
Deuteranopia (green-blind)
#6D7FAC
Tritanopia (blue-blind)
#CE4972
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c540af;
/* rgb */ color: rgb(197, 64, 175);
/* oklch */ color: oklch(59.8% 0.207 335.2);
Tailwind
colors: {
  custom: {
    50: '#da7fc7',
    500: '#c540af',
    950: '#000000',
  },
}
SCSS
$custom: #c540af;
$custom-light: #da7fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#c540af",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 309.925,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59834,
    "c": 0.20679,
    "h": 335.2
  },
  "luminance": 0.18632
}

Semantic roles & 50–950 ramp

primary
#C540AF
secondary
#93CE9D
accent
#DD634B
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C540AF

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

Preview Lab → · Contrast checker → · Palette generator →

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