#C540B2#C540B2

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

Color values

HEX#C540B2
RGBrgb(197, 64, 178)
HSLhsl(309, 53%, 51%)
HSVhsv(309, 68%, 77%)
CMYKcmyk(0%, 67.5%, 9.6%, 22.7%)
CIE-LABlab(50.40, 64.85, -33.38)
CIE-LCHlch(50.40, 72.94, 332.76°)
OKLaboklab(59.98% 0.188 -0.0912)
OKLCHoklch(59.98% 0.209 334.1)
XYZxyz(32.8955, 18.7542, 43.9982)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C540B2 #40C553
analogous
#9540C5 #C540B2 #C5406F
triadic
#C540B2 #B2C540 #40B2C5
tetradic
#C540B2 #C59540 #40C553 #406FC5
square
#C540B2 #C59540 #40C553 #406FC5
split-complementary
#C540B2 #6FC540 #40C595
monochromatic
#6A2060 #992F8A #C540B2 #D36FC5 #E29ED8

Accessibility & contrast

On white

4.42
#C540B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#C540B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C540B2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C540B2#FFFFFF#000000##000000
##C540B21.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c540b2;
/* rgb */ color: rgb(197, 64, 178);
/* oklch */ color: oklch(60.0% 0.209 334.1);
Tailwind
colors: {
  custom: {
    50: '#da7fc9',
    500: '#c540b2',
    950: '#000000',
  },
}
SCSS
$custom: #c540b2;
$custom-light: #da7fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c540b2",
  "rgb": {
    "r": 197,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 308.571,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59982,
    "c": 0.20898,
    "h": 334.1
  },
  "luminance": 0.18751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C540B2

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

Preview Lab → · Contrast checker → · Palette generator →

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