#C240C1#C240C1

#C240C1 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.3% C 0.219 H 328.2°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C240C1
RGBrgb(194, 64, 193)
HSLhsl(300, 52%, 51%)
HSVhsv(300, 67%, 76%)
CMYKcmyk(0%, 67%, 0.5%, 23.9%)
CIE-LABlab(50.67, 66.53, -41.71)
CIE-LCHlch(50.67, 78.52, 327.91°)
OKLaboklab(60.33% 0.1859 -0.1153)
OKLCHoklch(60.33% 0.219 328.2)
XYZxyz(33.7068, 18.9887, 52.3316)
Luminance0.1899 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240C1 #40C241
analogous
#8240C2 #C240C1 #C24080
triadic
#C240C1 #C1C240 #40C1C2
tetradic
#C240C1 #C28240 #40C241 #4080C2
square
#C240C1 #C28240 #40C241 #4080C2
split-complementary
#C240C1 #80C240 #40C282
monochromatic
#672166 #953094 #C240C1 #D16ED0 #E09DDF

Accessibility & contrast

On white

4.38
#C240C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#C240C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240C1
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240C1#FFFFFF#000000##000000
##C240C11.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c240c1;
/* rgb */ color: rgb(194, 64, 193);
/* oklch */ color: oklch(60.3% 0.219 328.2);
Tailwind
colors: {
  custom: {
    50: '#d87fd4',
    500: '#c240c1',
    950: '#000000',
  },
}
SCSS
$custom: #c240c1;
$custom-light: #d87fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#c240c1",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 300.462,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60332,
    "c": 0.21875,
    "h": 328.2
  },
  "luminance": 0.18986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C240C1

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

Preview Lab → · Contrast checker → · Palette generator →

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