#C240CD#C240CD

#C240CD is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.0% C 0.228 H 324.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#C240CD
RGBrgb(194, 64, 205)
HSLhsl(295, 59%, 53%)
HSVhsv(295, 69%, 80%)
CMYKcmyk(5.4%, 68.8%, 0%, 19.6%)
CIE-LABlab(51.32, 68.55, -47.60)
CIE-LCHlch(51.32, 83.46, 325.23°)
OKLaboklab(61.01% 0.1861 -0.1324)
OKLCHoklch(61.01% 0.228 324.6)
XYZxyz(35.1001, 19.5461, 59.6698)
Luminance0.1954 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240CD #4BCD40
analogous
#7B40CD #C240CD #CD4092
triadic
#C240CD #CDC240 #40CDC2
tetradic
#C240CD #CD7B40 #4BCD40 #4092CD
square
#C240CD #CD7B40 #4BCD40 #4092CD
split-complementary
#C240CD #92CD40 #40CD7B
monochromatic
#6D1E74 #9B2BA5 #C240CD #D171DA #E1A1E6

Accessibility & contrast

On white

4.28
#C240CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#C240CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240CD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240CD#FFFFFF#000000##000000
##C240CD1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B70D1
Deuteranopia (green-blind)
#5A80C9
Tritanopia (blue-blind)
#C65782
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c240cd;
/* rgb */ color: rgb(194, 64, 205);
/* oklch */ color: oklch(61.0% 0.228 324.6);
Tailwind
colors: {
  custom: {
    50: '#d880dd',
    500: '#c240cd',
    950: '#000000',
  },
}
SCSS
$custom: #c240cd;
$custom-light: #d880dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c240cd",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 295.319,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61005,
    "c": 0.22836,
    "h": 324.6
  },
  "luminance": 0.19544
}

Semantic roles & 50–950 ramp

primary
#C240CD
secondary
#9BD396
accent
#E24652
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C240CD

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

Preview Lab → · Contrast checker → · Palette generator →

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