#C240C8#C240C8

#C240C8 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.7% C 0.224 H 326.0°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C240C8
RGBrgb(194, 64, 200)
HSLhsl(297, 55%, 52%)
HSVhsv(297, 68%, 78%)
CMYKcmyk(3%, 68%, 0%, 21.6%)
CIE-LABlab(51.05, 67.70, -45.16)
CIE-LCHlch(51.05, 81.38, 326.29°)
OKLaboklab(60.72% 0.1861 -0.1253)
OKLCHoklch(60.72% 0.224 326)
XYZxyz(34.5062, 19.3085, 56.5418)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240C8 #46C840
analogous
#7E40C8 #C240C8 #C8408A
triadic
#C240C8 #C8C240 #40C8C2
tetradic
#C240C8 #C87E40 #46C840 #408AC8
square
#C240C8 #C87E40 #46C840 #408AC8
split-complementary
#C240C8 #8AC840 #40C87E
monochromatic
#6A206E #992D9D #C240C8 #D170D6 #E09FE3

Accessibility & contrast

On white

4.32
#C240C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#C240C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240C8#FFFFFF#000000##000000
##C240C81.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#246FCC
Deuteranopia (green-blind)
#5D7FC5
Tritanopia (blue-blind)
#C7557F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c240c8;
/* rgb */ color: rgb(194, 64, 200);
/* oklch */ color: oklch(60.7% 0.224 326.0);
Tailwind
colors: {
  custom: {
    50: '#d880d9',
    500: '#c240c8',
    950: '#000000',
  },
}
SCSS
$custom: #c240c8;
$custom-light: #d880d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c240c8",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 297.353,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.6072,
    "c": 0.22432,
    "h": 326
  },
  "luminance": 0.19306
}

Semantic roles & 50–950 ramp

primary
#C240C8
secondary
#97D094
accent
#DF4950
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #C240C8

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

Preview Lab → · Contrast checker → · Palette generator →

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