#C340AF#C340AF

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

Color values

HEX#C340AF
RGBrgb(195, 64, 175)
HSLhsl(309, 52%, 51%)
HSVhsv(309, 67%, 76%)
CMYKcmyk(0%, 67.2%, 10.3%, 23.5%)
CIE-LABlab(49.94, 63.90, -32.37)
CIE-LCHlch(49.94, 71.63, 333.14°)
OKLaboklab(59.54% 0.1856 -0.0884)
OKLCHoklch(59.54% 0.206 334.5)
XYZxyz(32.0772, 18.3667, 42.4048)
Luminance0.1836 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340AF #40C354
analogous
#9540C3 #C340AF #C3406D
triadic
#C340AF #AFC340 #40AFC3
tetradic
#C340AF #C39540 #40C354 #406DC3
square
#C340AF #C39540 #40C354 #406DC3
split-complementary
#C340AF #6DC340 #40C395
monochromatic
#68215D #972F87 #C340AF #D26FC3 #E09DD6

Accessibility & contrast

On white

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

On black

4.67
#C340AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340AF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340AF#FFFFFF#000000##000000
##C340AF1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6AB2
Deuteranopia (green-blind)
#6B7EAC
Tritanopia (blue-blind)
#CC4A72
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c340af;
/* rgb */ color: rgb(195, 64, 175);
/* oklch */ color: oklch(59.5% 0.206 334.5);
Tailwind
colors: {
  custom: {
    50: '#d97fc7',
    500: '#c340af',
    950: '#000000',
  },
}
SCSS
$custom: #c340af;
$custom-light: #d97fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#c340af",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 309.16,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5954,
    "c": 0.2056,
    "h": 334.5
  },
  "luminance": 0.18364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C340AF

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

Preview Lab → · Contrast checker → · Palette generator →

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