#C240CA#C240CA

#C240CA is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.226 H 325.4°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C240CA
RGBrgb(194, 64, 202)
HSLhsl(297, 57%, 52%)
HSVhsv(297, 68%, 79%)
CMYKcmyk(4%, 68.3%, 0%, 20.8%)
CIE-LABlab(51.15, 68.04, -46.14)
CIE-LCHlch(51.15, 82.20, 325.86°)
OKLaboklab(60.83% 0.1861 -0.1282)
OKLCHoklch(60.83% 0.226 325.4)
XYZxyz(34.7414, 19.4026, 57.7809)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240CA #48CA40
analogous
#7D40CA #C240CA #CA408D
triadic
#C240CA #CAC240 #40CAC2
tetradic
#C240CA #CA7D40 #48CA40 #408DCA
square
#C240CA #CA7D40 #48CA40 #408DCA
split-complementary
#C240CA #8DCA40 #40CA7D
monochromatic
#6C1F70 #9A2CA0 #C240CA #D170D7 #E1A0E5

Accessibility & contrast

On white

4.30
#C240CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#C240CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240CA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240CA#FFFFFF#000000##000000
##C240CA1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2170CE
Deuteranopia (green-blind)
#5C7FC7
Tritanopia (blue-blind)
#C65680
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c240ca;
/* rgb */ color: rgb(194, 64, 202);
/* oklch */ color: oklch(60.8% 0.226 325.4);
Tailwind
colors: {
  custom: {
    50: '#d880db',
    500: '#c240ca',
    950: '#000000',
  },
}
SCSS
$custom: #c240ca;
$custom-light: #d880db;
$custom-dark: #000000;
JSON
{
  "hex": "#c240ca",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 296.522,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60834,
    "c": 0.22593,
    "h": 325.4
  },
  "luminance": 0.194
}

Semantic roles & 50–950 ramp

primary
#C240CA
secondary
#98D195
accent
#E04851
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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