#CA40BA#CA40BA

#CA40BA is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.1% C 0.218 H 332.9°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CA40BA
RGBrgb(202, 64, 186)
HSLhsl(307, 57%, 52%)
HSVhsv(307, 68%, 79%)
CMYKcmyk(0%, 68.3%, 7.9%, 20.8%)
CIE-LABlab(51.58, 67.28, -36.14)
CIE-LCHlch(51.58, 76.37, 331.76°)
OKLaboklab(61.11% 0.1939 -0.099)
OKLCHoklch(61.11% 0.218 332.9)
XYZxyz(35.0536, 19.7714, 48.4149)
Luminance0.1977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40BA #40CA50
analogous
#9540CA #CA40BA #CA4075
triadic
#CA40BA #BACA40 #40BACA
tetradic
#CA40BA #CA9540 #40CA50 #4075CA
square
#CA40BA #CA9540 #40CA50 #4075CA
split-complementary
#CA40BA #75CA40 #40CA95
monochromatic
#701F67 #A02C93 #CA40BA #D770CB #E5A0DD

Accessibility & contrast

On white

4.24
#CA40BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CA40BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40BA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40BA#FFFFFF#000000##000000
##CA40BA1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6EBD
Deuteranopia (green-blind)
#6C82B7
Tritanopia (blue-blind)
#D34D78
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40ba;
/* rgb */ color: rgb(202, 64, 186);
/* oklch */ color: oklch(61.1% 0.218 332.9);
Tailwind
colors: {
  custom: {
    50: '#de80cf',
    500: '#ca40ba',
    950: '#000000',
  },
}
SCSS
$custom: #ca40ba;
$custom-light: #de80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40ba",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 306.957,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61115,
    "c": 0.21771,
    "h": 332.9
  },
  "luminance": 0.19769
}

Semantic roles & 50–950 ramp

primary
#CA40BA
secondary
#95D19C
accent
#E05A48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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