#C340E6#C340E6

#C340E6 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.7% C 0.249 H 318.2°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#C340E6
RGBrgb(195, 64, 230)
HSLhsl(287, 77%, 58%)
HSVhsv(287, 72%, 90%)
CMYKcmyk(15.2%, 72.2%, 0%, 9.8%)
CIE-LABlab(52.93, 73.22, -59.23)
CIE-LCHlch(52.93, 94.18, 321.03°)
OKLaboklab(62.66% 0.1859 -0.1664)
OKLCHoklch(62.66% 0.249 318.2)
XYZxyz(38.6200, 20.9838, 76.8636)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340E6 #63E640
analogous
#7040E6 #C340E6 #E640B6
triadic
#C340E6 #E6C340 #40E6C3
tetradic
#C340E6 #E67040 #63E640 #40B6E6
square
#C340E6 #E67040 #63E640 #40B6E6
split-complementary
#C340E6 #B6E640 #40E670
monochromatic
#7C1498 #A81BCE #C340E6 #D476ED #E5ACF4

Accessibility & contrast

On white

4.04
#C340E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#C340E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340E6
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340E6#FFFFFF#000000##000000
##C340E61.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EB
Deuteranopia (green-blind)
#4882E2
Tritanopia (blue-blind)
#C26290
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #c340e6;
/* rgb */ color: rgb(195, 64, 230);
/* oklch */ color: oklch(62.7% 0.249 318.2);
Tailwind
colors: {
  custom: {
    50: '#d981ef',
    500: '#c340e6',
    950: '#000000',
  },
}
SCSS
$custom: #c340e6;
$custom-light: #d981ef;
$custom-dark: #000000;
JSON
{
  "hex": "#c340e6",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 287.349,
    "s": 76.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62655,
    "c": 0.24946,
    "h": 318.2
  },
  "luminance": 0.20982
}

Semantic roles & 50–950 ramp

primary
#C340E6
secondary
#AEE29F
accent
#F3345D
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C340E6

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

Preview Lab → · Contrast checker → · Palette generator →

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