#C340B9#C340B9

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

Color values

HEX#C340B9
RGBrgb(195, 64, 185)
HSLhsl(305, 52%, 51%)
HSVhsv(305, 67%, 76%)
CMYKcmyk(0%, 67.2%, 5.1%, 23.5%)
CIE-LABlab(50.42, 65.46, -37.45)
CIE-LCHlch(50.42, 75.42, 330.23°)
OKLaboklab(60.05% 0.1865 -0.103)
OKLCHoklch(60.05% 0.213 331.1)
XYZxyz(33.0960, 18.7742, 47.7702)
Luminance0.1877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340B9 #40C34A
analogous
#8B40C3 #C340B9 #C34077
triadic
#C340B9 #B9C340 #40B9C3
tetradic
#C340B9 #C38B40 #40C34A #4077C3
square
#C340B9 #C38B40 #40C34A #4077C3
split-complementary
#C340B9 #77C340 #40C38B
monochromatic
#682163 #972F8F #C340B9 #D26FCA #E09DDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C340B9#FFFFFF#000000##000000
##C340B91.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)
#376CBC
Deuteranopia (green-blind)
#667EB6
Tritanopia (blue-blind)
#CB4E77
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c340b9;
/* rgb */ color: rgb(195, 64, 185);
/* oklch */ color: oklch(60.0% 0.213 331.1);
Tailwind
colors: {
  custom: {
    50: '#d97fce',
    500: '#c340b9',
    950: '#000000',
  },
}
SCSS
$custom: #c340b9;
$custom-light: #d97fce;
$custom-dark: #000000;
JSON
{
  "hex": "#c340b9",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 304.58,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60048,
    "c": 0.21307,
    "h": 331.1
  },
  "luminance": 0.18772
}

Semantic roles & 50–950 ramp

primary
#C340B9
secondary
#92CC97
accent
#DC574C
background
#FDF8FC
surface
#FBEFF9
border
#D4CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #C340B9

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

Preview Lab → · Contrast checker → · Palette generator →

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