#CA40C0#CA40C0

#CA40C0 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.222 H 331.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CA40C0
RGBrgb(202, 64, 192)
HSLhsl(304, 57%, 52%)
HSVhsv(304, 68%, 79%)
CMYKcmyk(0%, 68.3%, 5%, 20.8%)
CIE-LABlab(51.87, 68.22, -39.15)
CIE-LCHlch(51.87, 78.65, 330.15°)
OKLaboklab(61.43% 0.1943 -0.1077)
OKLCHoklch(61.43% 0.222 331)
XYZxyz(35.7049, 20.0319, 51.8450)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C0 #40CA4A
analogous
#8F40CA #CA40C0 #CA407B
triadic
#CA40C0 #C0CA40 #40C0CA
tetradic
#CA40C0 #CA8F40 #40CA4A #407BCA
square
#CA40C0 #CA8F40 #40CA4A #407BCA
split-complementary
#CA40C0 #7BCA40 #40CA8F
monochromatic
#701F6B #A02C98 #CA40C0 #D770D0 #E5A0E0

Accessibility & contrast

On white

4.20
#CA40C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CA40C0#FFFFFF#000000##000000
##CA40C01.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#356FC4
Deuteranopia (green-blind)
#6982BD
Tritanopia (blue-blind)
#D2507B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40c0;
/* rgb */ color: rgb(202, 64, 192);
/* oklch */ color: oklch(61.4% 0.222 331.0);
Tailwind
colors: {
  custom: {
    50: '#de80d3',
    500: '#ca40c0',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c0;
$custom-light: #de80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c0",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 304.348,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61425,
    "c": 0.22216,
    "h": 331
  },
  "luminance": 0.20029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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