#CA40C5#CA40C5

#CA40C5 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.226 H 329.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CA40C5
RGBrgb(202, 64, 197)
HSLhsl(302, 57%, 52%)
HSVhsv(302, 68%, 79%)
CMYKcmyk(0%, 68.3%, 2.5%, 20.8%)
CIE-LABlab(52.13, 69.01, -41.64)
CIE-LCHlch(52.13, 80.60, 328.89°)
OKLaboklab(61.69% 0.1945 -0.1149)
OKLCHoklch(61.69% 0.226 329.4)
XYZxyz(36.2683, 20.2572, 54.8123)
Luminance0.2026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C5 #40CA45
analogous
#8A40CA #CA40C5 #CA4080
triadic
#CA40C5 #C5CA40 #40C5CA
tetradic
#CA40C5 #CA8A40 #40CA45 #4080CA
square
#CA40C5 #CA8A40 #40CA45 #4080CA
split-complementary
#CA40C5 #80CA40 #40CA8A
monochromatic
#701F6D #A02C9C #CA40C5 #D770D4 #E5A0E2

Accessibility & contrast

On white

4.16
#CA40C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CA40C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C5
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C5#FFFFFF#000000##000000
##CA40C51.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3070C9
Deuteranopia (green-blind)
#6683C1
Tritanopia (blue-blind)
#D1527E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40c5;
/* rgb */ color: rgb(202, 64, 197);
/* oklch */ color: oklch(61.7% 0.226 329.4);
Tailwind
colors: {
  custom: {
    50: '#de80d7',
    500: '#ca40c5',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c5;
$custom-light: #de80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c5",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 302.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.6169,
    "c": 0.22595,
    "h": 329.4
  },
  "luminance": 0.20255
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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