#C340B0#C340B0

#C340B0 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.6% C 0.206 H 334.2°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#C340B0
RGBrgb(195, 64, 176)
HSLhsl(309, 52%, 51%)
HSVhsv(309, 67%, 76%)
CMYKcmyk(0%, 67.2%, 9.7%, 23.5%)
CIE-LABlab(49.98, 64.05, -32.88)
CIE-LCHlch(49.98, 72.00, 332.83°)
OKLaboklab(59.59% 0.1858 -0.0898)
OKLCHoklch(59.59% 0.206 334.2)
XYZxyz(32.1758, 18.4061, 42.9240)
Luminance0.1840 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340B0 #40C353
analogous
#9440C3 #C340B0 #C3406E
triadic
#C340B0 #B0C340 #40B0C3
tetradic
#C340B0 #C39440 #40C353 #406EC3
square
#C340B0 #C39440 #40C353 #406EC3
split-complementary
#C340B0 #6EC340 #40C394
monochromatic
#68215E #972F88 #C340B0 #D26FC3 #E09DD7

Accessibility & contrast

On white

4.49
#C340B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#C340B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340B0
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340B0#FFFFFF#000000##000000
##C340B01.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6BB3
Deuteranopia (green-blind)
#6B7EAD
Tritanopia (blue-blind)
#CC4A73
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c340b0;
/* rgb */ color: rgb(195, 64, 176);
/* oklch */ color: oklch(59.6% 0.206 334.2);
Tailwind
colors: {
  custom: {
    50: '#d97fc8',
    500: '#c340b0',
    950: '#000000',
  },
}
SCSS
$custom: #c340b0;
$custom-light: #d97fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#c340b0",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 308.702,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5959,
    "c": 0.20634,
    "h": 334.2
  },
  "luminance": 0.18403
}

Semantic roles & 50–950 ramp

primary
#C340B0
secondary
#92CC9B
accent
#DC614C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C340B0

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

Preview Lab → · Contrast checker → · Palette generator →

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