#CA40B7#CA40B7

#CA40B7 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.216 H 333.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CA40B7
RGBrgb(202, 64, 183)
HSLhsl(308, 57%, 52%)
HSVhsv(308, 68%, 79%)
CMYKcmyk(0%, 68.3%, 9.4%, 20.8%)
CIE-LABlab(51.43, 66.82, -34.62)
CIE-LCHlch(51.43, 75.26, 332.61°)
OKLaboklab(60.96% 0.1936 -0.0947)
OKLCHoklch(60.96% 0.216 333.9)
XYZxyz(34.7380, 19.6451, 46.7529)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B7 #40CA53
analogous
#9840CA #CA40B7 #CA4072
triadic
#CA40B7 #B7CA40 #40B7CA
tetradic
#CA40B7 #CA9840 #40CA53 #4072CA
square
#CA40B7 #CA9840 #40CA53 #4072CA
split-complementary
#CA40B7 #72CA40 #40CA98
monochromatic
#701F65 #A02C90 #CA40B7 #D770C9 #E5A0DB

Accessibility & contrast

On white

4.26
#CA40B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CA40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B7#FFFFFF#000000##000000
##CA40B71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBA
Deuteranopia (green-blind)
#6D82B4
Tritanopia (blue-blind)
#D34B76
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40b7;
/* rgb */ color: rgb(202, 64, 183);
/* oklch */ color: oklch(61.0% 0.216 333.9);
Tailwind
colors: {
  custom: {
    50: '#de80cd',
    500: '#ca40b7',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b7;
$custom-light: #de80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b7",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 308.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.21551,
    "h": 333.9
  },
  "luminance": 0.19642
}

Semantic roles & 50–950 ramp

primary
#CA40B7
secondary
#95D19D
accent
#E05D48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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