#CA40CA#CA40CA

#CA40CA is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 62.0% C 0.230 H 327.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CA40CA
RGBrgb(202, 64, 202)
HSLhsl(300, 57%, 52%)
HSVhsv(300, 68%, 79%)
CMYKcmyk(0%, 68.3%, 0%, 20.8%)
CIE-LABlab(52.39, 69.82, -44.11)
CIE-LCHlch(52.39, 82.58, 327.72°)
OKLaboklab(61.96% 0.1947 -0.1221)
OKLCHoklch(61.96% 0.23 327.9)
XYZxyz(36.8507, 20.4902, 57.8797)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40CA #40CA40
analogous
#8540CA #CA40CA #CA4085
triadic
#CA40CA #CACA40 #40CACA
tetradic
#CA40CA #CA8540 #40CA40 #4085CA
square
#CA40CA #CA8540 #40CA40 #4085CA
split-complementary
#CA40CA #85CA40 #40CA85
monochromatic
#701F70 #A02CA0 #CA40CA #D770D7 #E5A0E5

Accessibility & contrast

On white

4.12
#CA40CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CA40CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40CA
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40CA#FFFFFF#000000##000000
##CA40CA1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A71CE
Deuteranopia (green-blind)
#6483C6
Tritanopia (blue-blind)
#D05481
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ca40ca;
/* rgb */ color: rgb(202, 64, 202);
/* oklch */ color: oklch(62.0% 0.230 327.9);
Tailwind
colors: {
  custom: {
    50: '#de81da',
    500: '#ca40ca',
    950: '#000000',
  },
}
SCSS
$custom: #ca40ca;
$custom-light: #de81da;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40ca",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 300,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61961,
    "c": 0.2298,
    "h": 327.9
  },
  "luminance": 0.20488
}

Semantic roles & 50–950 ramp

primary
#CA40CA
secondary
#95D195
accent
#E04848
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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