#C240C2#C240C2

#C240C2 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.4% C 0.220 H 327.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C240C2
RGBrgb(194, 64, 194)
HSLhsl(300, 52%, 51%)
HSVhsv(300, 67%, 76%)
CMYKcmyk(0%, 67%, 0%, 23.9%)
CIE-LABlab(50.73, 66.69, -42.20)
CIE-LCHlch(50.73, 78.92, 327.67°)
OKLaboklab(60.39% 0.1859 -0.1167)
OKLCHoklch(60.39% 0.22 327.9)
XYZxyz(33.8187, 19.0335, 52.9211)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240C2 #40C240
analogous
#8140C2 #C240C2 #C24081
triadic
#C240C2 #C2C240 #40C2C2
tetradic
#C240C2 #C28140 #40C240 #4081C2
square
#C240C2 #C28140 #40C240 #4081C2
split-complementary
#C240C2 #81C240 #40C281
monochromatic
#672167 #953095 #C240C2 #D16ED1 #E09DE0

Accessibility & contrast

On white

4.37
#C240C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#C240C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240C2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240C2#FFFFFF#000000##000000
##C240C21.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6EC6
Deuteranopia (green-blind)
#617FBF
Tritanopia (blue-blind)
#C8527C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c240c2;
/* rgb */ color: rgb(194, 64, 194);
/* oklch */ color: oklch(60.4% 0.220 327.9);
Tailwind
colors: {
  custom: {
    50: '#d87fd5',
    500: '#c240c2',
    950: '#000000',
  },
}
SCSS
$custom: #c240c2;
$custom-light: #d87fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#c240c2",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 300,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60387,
    "c": 0.21954,
    "h": 327.9
  },
  "luminance": 0.19031
}

Semantic roles & 50–950 ramp

primary
#C240C2
secondary
#92CC92
accent
#DB4D4D
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C240C2

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

Preview Lab → · Contrast checker → · Palette generator →

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