#CA40C4#CA40C4

#CA40C4 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.225 H 329.7°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#CA40C4
RGBrgb(202, 64, 196)
HSLhsl(303, 57%, 52%)
HSVhsv(303, 68%, 79%)
CMYKcmyk(0%, 68.3%, 3%, 20.8%)
CIE-LABlab(52.08, 68.85, -41.14)
CIE-LCHlch(52.08, 80.21, 329.14°)
OKLaboklab(61.64% 0.1945 -0.1135)
OKLCHoklch(61.64% 0.225 329.7)
XYZxyz(36.1541, 20.2116, 54.2109)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C4 #40CA46
analogous
#8B40CA #CA40C4 #CA407F
triadic
#CA40C4 #C4CA40 #40C4CA
tetradic
#CA40C4 #CA8B40 #40CA46 #407FCA
square
#CA40C4 #CA8B40 #40CA46 #407FCA
split-complementary
#CA40C4 #7FCA40 #40CA8B
monochromatic
#701F6D #A02C9B #CA40C4 #D770D3 #E5A0E2

Accessibility & contrast

On white

4.17
#CA40C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CA40C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C4#FFFFFF#000000##000000
##CA40C41.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3170C8
Deuteranopia (green-blind)
#6783C0
Tritanopia (blue-blind)
#D1517D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40c4;
/* rgb */ color: rgb(202, 64, 196);
/* oklch */ color: oklch(61.6% 0.225 329.7);
Tailwind
colors: {
  custom: {
    50: '#de80d6',
    500: '#ca40c4',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c4;
$custom-light: #de80d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c4",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 302.609,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61636,
    "c": 0.22518,
    "h": 329.7
  },
  "luminance": 0.20209
}

Semantic roles & 50–950 ramp

primary
#CA40C4
secondary
#95D197
accent
#E04F48
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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