#C340B2#C340B2

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

Color values

HEX#C340B2
RGBrgb(195, 64, 178)
HSLhsl(308, 52%, 51%)
HSVhsv(308, 67%, 76%)
CMYKcmyk(0%, 67.2%, 8.7%, 23.5%)
CIE-LABlab(50.08, 64.36, -33.90)
CIE-LCHlch(50.08, 72.74, 332.22°)
OKLaboklab(59.69% 0.186 -0.0928)
OKLCHoklch(59.69% 0.208 333.5)
XYZxyz(32.3751, 18.4859, 43.9738)
Luminance0.1848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340B2 #40C351
analogous
#9240C3 #C340B2 #C34070
triadic
#C340B2 #B2C340 #40B2C3
tetradic
#C340B2 #C39240 #40C351 #4070C3
square
#C340B2 #C39240 #40C351 #4070C3
split-complementary
#C340B2 #70C340 #40C392
monochromatic
#68215F #972F89 #C340B2 #D26FC5 #E09DD8

Accessibility & contrast

On white

4.47
#C340B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##C340B2#FFFFFF#000000##000000
##C340B21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#6A7EAF
Tritanopia (blue-blind)
#CC4B74
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c340b2;
/* rgb */ color: rgb(195, 64, 178);
/* oklch */ color: oklch(59.7% 0.208 333.5);
Tailwind
colors: {
  custom: {
    50: '#d97fc9',
    500: '#c340b2',
    950: '#000000',
  },
}
SCSS
$custom: #c340b2;
$custom-light: #d97fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#c340b2",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 307.786,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5969,
    "c": 0.20781,
    "h": 333.5
  },
  "luminance": 0.18483
}

Semantic roles & 50–950 ramp

primary
#C340B2
secondary
#92CC9A
accent
#DC5F4C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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