#CA40C7#CA40C7

#CA40C7 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.8% C 0.227 H 328.8°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CA40C7
RGBrgb(202, 64, 199)
HSLhsl(301, 57%, 52%)
HSVhsv(301, 68%, 79%)
CMYKcmyk(0%, 68.3%, 1.5%, 20.8%)
CIE-LABlab(52.23, 69.33, -42.63)
CIE-LCHlch(52.23, 81.39, 328.41°)
OKLaboklab(61.8% 0.1946 -0.1178)
OKLCHoklch(61.8% 0.227 328.8)
XYZxyz(36.4990, 20.3495, 56.0272)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C7 #40CA43
analogous
#8840CA #CA40C7 #CA4082
triadic
#CA40C7 #C7CA40 #40C7CA
tetradic
#CA40C7 #CA8840 #40CA43 #4082CA
square
#CA40C7 #CA8840 #40CA43 #4082CA
split-complementary
#CA40C7 #82CA40 #40CA88
monochromatic
#701F6F #A02C9E #CA40C7 #D770D5 #E5A0E3

Accessibility & contrast

On white

4.14
#CA40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CA40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C7#FFFFFF#000000##000000
##CA40C71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E71CB
Deuteranopia (green-blind)
#6583C3
Tritanopia (blue-blind)
#D1537F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ca40c7;
/* rgb */ color: rgb(202, 64, 199);
/* oklch */ color: oklch(61.8% 0.227 328.8);
Tailwind
colors: {
  custom: {
    50: '#de81d8',
    500: '#ca40c7',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c7;
$custom-light: #de81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c7",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 301.304,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61797,
    "c": 0.22748,
    "h": 328.8
  },
  "luminance": 0.20347
}

Semantic roles & 50–950 ramp

primary
#CA40C7
secondary
#95D196
accent
#E04B48
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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