#CA40C1#CA40C1

#CA40C1 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.223 H 330.7°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CA40C1
RGBrgb(202, 64, 193)
HSLhsl(304, 57%, 52%)
HSVhsv(304, 68%, 79%)
CMYKcmyk(0%, 68.3%, 4.5%, 20.8%)
CIE-LABlab(51.92, 68.37, -39.65)
CIE-LCHlch(51.92, 79.04, 329.89°)
OKLaboklab(61.48% 0.1944 -0.1092)
OKLCHoklch(61.48% 0.223 330.7)
XYZxyz(35.8160, 20.0763, 52.4305)
Luminance0.2007 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C1 #40CA49
analogous
#8E40CA #CA40C1 #CA407C
triadic
#CA40C1 #C1CA40 #40C1CA
tetradic
#CA40C1 #CA8E40 #40CA49 #407CCA
square
#CA40C1 #CA8E40 #40CA49 #407CCA
split-complementary
#CA40C1 #7CCA40 #40CA8E
monochromatic
#701F6B #A02C99 #CA40C1 #D770D1 #E5A0E0

Accessibility & contrast

On white

4.19
#CA40C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CA40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C1#FFFFFF#000000##000000
##CA40C11.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3470C5
Deuteranopia (green-blind)
#6883BE
Tritanopia (blue-blind)
#D2507C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40c1;
/* rgb */ color: rgb(202, 64, 193);
/* oklch */ color: oklch(61.5% 0.223 330.7);
Tailwind
colors: {
  custom: {
    50: '#de80d4',
    500: '#ca40c1',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c1;
$custom-light: #de80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c1",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 303.913,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61477,
    "c": 0.22291,
    "h": 330.7
  },
  "luminance": 0.20074
}

Semantic roles & 50–950 ramp

primary
#CA40C1
secondary
#95D199
accent
#E05248
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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