#C340BD#C340BD

#C340BD is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.3% C 0.216 H 329.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C340BD
RGBrgb(195, 64, 189)
HSLhsl(303, 52%, 51%)
HSVhsv(303, 67%, 76%)
CMYKcmyk(0%, 67.2%, 3.1%, 23.5%)
CIE-LABlab(50.62, 66.10, -39.46)
CIE-LCHlch(50.62, 76.98, 329.17°)
OKLaboklab(60.26% 0.1868 -0.1088)
OKLCHoklch(60.26% 0.216 329.8)
XYZxyz(33.5242, 18.9455, 50.0254)
Luminance0.1894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340BD #40C346
analogous
#8740C3 #C340BD #C3407B
triadic
#C340BD #BDC340 #40BDC3
tetradic
#C340BD #C38740 #40C346 #407BC3
square
#C340BD #C38740 #40C346 #407BC3
split-complementary
#C340BD #7BC340 #40C387
monochromatic
#682165 #972F92 #C340BD #D26FCD #E09DDD

Accessibility & contrast

On white

4.39
#C340BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#C340BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340BD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340BD#FFFFFF#000000##000000
##C340BD1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#336DC1
Deuteranopia (green-blind)
#647FBA
Tritanopia (blue-blind)
#CA5079
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c340bd;
/* rgb */ color: rgb(195, 64, 189);
/* oklch */ color: oklch(60.3% 0.216 329.8);
Tailwind
colors: {
  custom: {
    50: '#d97fd1',
    500: '#c340bd',
    950: '#000000',
  },
}
SCSS
$custom: #c340bd;
$custom-light: #d97fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#c340bd",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 302.748,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60259,
    "c": 0.21614,
    "h": 329.8
  },
  "luminance": 0.18943
}

Semantic roles & 50–950 ramp

primary
#C340BD
secondary
#92CC95
accent
#DC534C
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C340BD

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

Preview Lab → · Contrast checker → · Palette generator →

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