#C340B3#C340B3

#C340B3 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.209 H 333.1°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#C340B3
RGBrgb(195, 64, 179)
HSLhsl(307, 52%, 51%)
HSVhsv(307, 67%, 76%)
CMYKcmyk(0%, 67.2%, 8.2%, 23.5%)
CIE-LABlab(50.13, 64.52, -34.41)
CIE-LCHlch(50.13, 73.12, 331.92°)
OKLaboklab(59.74% 0.1861 -0.0942)
OKLCHoklch(59.74% 0.209 333.1)
XYZxyz(32.4759, 18.5262, 44.5045)
Luminance0.1852 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340B3 #40C350
analogous
#9140C3 #C340B3 #C34071
triadic
#C340B3 #B3C340 #40B3C3
tetradic
#C340B3 #C39140 #40C350 #4071C3
square
#C340B3 #C39140 #40C350 #4071C3
split-complementary
#C340B3 #71C340 #40C391
monochromatic
#68215F #972F8A #C340B3 #D26FC6 #E09DD8

Accessibility & contrast

On white

4.46
#C340B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#C340B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340B3
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340B3#FFFFFF#000000##000000
##C340B31.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB6
Deuteranopia (green-blind)
#697EB0
Tritanopia (blue-blind)
#CC4C74
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c340b3;
/* rgb */ color: rgb(195, 64, 179);
/* oklch */ color: oklch(59.7% 0.209 333.1);
Tailwind
colors: {
  custom: {
    50: '#d97fca',
    500: '#c340b3',
    950: '#000000',
  },
}
SCSS
$custom: #c340b3;
$custom-light: #d97fca;
$custom-dark: #000000;
JSON
{
  "hex": "#c340b3",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 307.328,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5974,
    "c": 0.20855,
    "h": 333.1
  },
  "luminance": 0.18524
}

Semantic roles & 50–950 ramp

primary
#C340B3
secondary
#92CC99
accent
#DC5E4C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C340B3

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

Preview Lab → · Contrast checker → · Palette generator →

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