#C340BF#C340BF

#C340BF is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.4% C 0.218 H 329.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C340BF
RGBrgb(195, 64, 191)
HSLhsl(302, 52%, 51%)
HSVhsv(302, 67%, 76%)
CMYKcmyk(0%, 67.2%, 2.1%, 23.5%)
CIE-LABlab(50.73, 66.43, -40.46)
CIE-LCHlch(50.73, 77.78, 328.66°)
OKLaboklab(60.37% 0.1869 -0.1117)
OKLCHoklch(60.37% 0.218 329.1)
XYZxyz(33.7427, 19.0329, 51.1766)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340BF #40C344
analogous
#8540C3 #C340BF #C3407D
triadic
#C340BF #BFC340 #40BFC3
tetradic
#C340BF #C38540 #40C344 #407DC3
square
#C340BF #C38540 #40C344 #407DC3
split-complementary
#C340BF #7DC340 #40C385
monochromatic
#682166 #972F93 #C340BF #D26FCF #E09DDE

Accessibility & contrast

On white

4.37
#C340BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#C340BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340BF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340BF#FFFFFF#000000##000000
##C340BF1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#316EC3
Deuteranopia (green-blind)
#637FBC
Tritanopia (blue-blind)
#CA517B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c340bf;
/* rgb */ color: rgb(195, 64, 191);
/* oklch */ color: oklch(60.4% 0.218 329.1);
Tailwind
colors: {
  custom: {
    50: '#d97fd3',
    500: '#c340bf',
    950: '#000000',
  },
}
SCSS
$custom: #c340bf;
$custom-light: #d97fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#c340bf",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 301.832,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60366,
    "c": 0.2177,
    "h": 329.1
  },
  "luminance": 0.1903
}

Semantic roles & 50–950 ramp

primary
#C340BF
secondary
#92CC94
accent
#DC514C
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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