#CA40B6#CA40B6

#CA40B6 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.9% C 0.215 H 334.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CA40B6
RGBrgb(202, 64, 182)
HSLhsl(309, 57%, 52%)
HSVhsv(309, 68%, 79%)
CMYKcmyk(0%, 68.3%, 9.9%, 20.8%)
CIE-LABlab(51.39, 66.67, -34.11)
CIE-LCHlch(51.39, 74.89, 332.90°)
OKLaboklab(60.91% 0.1935 -0.0932)
OKLCHoklch(60.91% 0.215 334.3)
XYZxyz(34.6343, 19.6036, 46.2067)
Luminance0.1960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B6 #40CA54
analogous
#9940CA #CA40B6 #CA4071
triadic
#CA40B6 #B6CA40 #40B6CA
tetradic
#CA40B6 #CA9940 #40CA54 #4071CA
square
#CA40B6 #CA9940 #40CA54 #4071CA
split-complementary
#CA40B6 #71CA40 #40CA99
monochromatic
#701F65 #A02C90 #CA40B6 #D770C8 #E5A0DB

Accessibility & contrast

On white

4.27
#CA40B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CA40B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B6
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B6#FFFFFF#000000##000000
##CA40B61.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6DB9
Deuteranopia (green-blind)
#6E82B3
Tritanopia (blue-blind)
#D34B76
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca40b6;
/* rgb */ color: rgb(202, 64, 182);
/* oklch */ color: oklch(60.9% 0.215 334.3);
Tailwind
colors: {
  custom: {
    50: '#de80cc',
    500: '#ca40b6',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b6;
$custom-light: #de80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b6",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 308.696,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60914,
    "c": 0.21479,
    "h": 334.3
  },
  "luminance": 0.19601
}

Semantic roles & 50–950 ramp

primary
#CA40B6
secondary
#95D19E
accent
#E05E48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B6

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

Preview Lab → · Contrast checker → · Palette generator →

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