#CA40B4#CA40B4

#CA40B4 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.213 H 335.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#CA40B4
RGBrgb(202, 64, 180)
HSLhsl(310, 57%, 52%)
HSVhsv(310, 68%, 79%)
CMYKcmyk(0%, 68.3%, 10.9%, 20.8%)
CIE-LABlab(51.29, 66.37, -33.09)
CIE-LCHlch(51.29, 74.16, 333.50°)
OKLaboklab(60.82% 0.1933 -0.0903)
OKLCHoklch(60.82% 0.213 335)
XYZxyz(34.4291, 19.5216, 45.1259)
Luminance0.1952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B4 #40CA56
analogous
#9B40CA #CA40B4 #CA406F
triadic
#CA40B4 #B4CA40 #40B4CA
tetradic
#CA40B4 #CA9B40 #40CA56 #406FCA
square
#CA40B4 #CA9B40 #40CA56 #406FCA
split-complementary
#CA40B4 #6FCA40 #40CA9B
monochromatic
#701F63 #A02C8E #CA40B4 #D770C7 #E5A0DA

Accessibility & contrast

On white

4.28
#CA40B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CA40B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B4#FFFFFF#000000##000000
##CA40B41.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6DB7
Deuteranopia (green-blind)
#6E82B1
Tritanopia (blue-blind)
#D44A75
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca40b4;
/* rgb */ color: rgb(202, 64, 180);
/* oklch */ color: oklch(60.8% 0.213 335.0);
Tailwind
colors: {
  custom: {
    50: '#de80cb',
    500: '#ca40b4',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b4;
$custom-light: #de80cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b4",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 309.565,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60815,
    "c": 0.21336,
    "h": 335
  },
  "luminance": 0.19519
}

Semantic roles & 50–950 ramp

primary
#CA40B4
secondary
#95D19E
accent
#E06048
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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