#CA40BE#CA40BE

#CA40BE is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.3% C 0.221 H 331.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CA40BE
RGBrgb(202, 64, 190)
HSLhsl(305, 57%, 52%)
HSVhsv(305, 68%, 79%)
CMYKcmyk(0%, 68.3%, 5.9%, 20.8%)
CIE-LABlab(51.77, 67.90, -38.15)
CIE-LCHlch(51.77, 77.89, 330.67°)
OKLaboklab(61.32% 0.1942 -0.1048)
OKLCHoklch(61.32% 0.221 331.6)
XYZxyz(35.4848, 19.9438, 50.6858)
Luminance0.1994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40BE #40CA4C
analogous
#9140CA #CA40BE #CA4079
triadic
#CA40BE #BECA40 #40BECA
tetradic
#CA40BE #CA9140 #40CA4C #4079CA
square
#CA40BE #CA9140 #40CA4C #4079CA
split-complementary
#CA40BE #79CA40 #40CA91
monochromatic
#701F69 #A02C96 #CA40BE #D770CE #E5A0DF

Accessibility & contrast

On white

4.21
#CA40BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CA40BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40BE
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40BE#FFFFFF#000000##000000
##CA40BE1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#376FC2
Deuteranopia (green-blind)
#6A82BB
Tritanopia (blue-blind)
#D24F7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40be;
/* rgb */ color: rgb(202, 64, 190);
/* oklch */ color: oklch(61.3% 0.221 331.6);
Tailwind
colors: {
  custom: {
    50: '#de80d2',
    500: '#ca40be',
    950: '#000000',
  },
}
SCSS
$custom: #ca40be;
$custom-light: #de80d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40be",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 305.217,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.6132,
    "c": 0.22067,
    "h": 331.6
  },
  "luminance": 0.19941
}

Semantic roles & 50–950 ramp

primary
#CA40BE
secondary
#95D19A
accent
#E05548
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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