#C240D9#C240D9

#C240D9 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.7% C 0.238 H 321.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#C240D9
RGBrgb(194, 64, 217)
HSLhsl(291, 67%, 55%)
HSVhsv(291, 71%, 85%)
CMYKcmyk(10.6%, 70.5%, 0%, 14.9%)
CIE-LABlab(52.00, 70.66, -53.36)
CIE-LCHlch(52.00, 88.54, 322.94°)
OKLaboklab(61.72% 0.1857 -0.1492)
OKLCHoklch(61.72% 0.238 321.2)
XYZxyz(36.6045, 20.1478, 67.5930)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240D9 #57D940
analogous
#7540D9 #C240D9 #D940A4
triadic
#C240D9 #D9C240 #40D9C2
tetradic
#C240D9 #D97540 #57D940 #40A4D9
square
#C240D9 #D97540 #57D940 #40A4D9
split-complementary
#C240D9 #A4D940 #40D975
monochromatic
#741A84 #A124B7 #C240D9 #D273E3 #E3A6ED

Accessibility & contrast

On white

4.18
#C240D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#C240D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240D9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240D9#FFFFFF#000000##000000
##C240D91.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#5281D5
Tritanopia (blue-blind)
#C45C89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c240d9;
/* rgb */ color: rgb(194, 64, 217);
/* oklch */ color: oklch(61.7% 0.238 321.2);
Tailwind
colors: {
  custom: {
    50: '#d880e5',
    500: '#c240d9',
    950: '#000000',
  },
}
SCSS
$custom: #c240d9;
$custom-light: #d880e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c240d9",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 290.98,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61715,
    "c": 0.23821,
    "h": 321.2
  },
  "luminance": 0.20146
}

Semantic roles & 50–950 ramp

primary
#C240D9
secondary
#A4DA9A
accent
#EA3E58
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C240D9

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

Preview Lab → · Contrast checker → · Palette generator →

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