#CA31BD#CA31BD

#CA31BD is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 60.0% C 0.236 H 331.9°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#CA31BD
RGBrgb(202, 49, 189)
HSLhsl(305, 61%, 49%)
HSVhsv(305, 76%, 79%)
CMYKcmyk(0%, 75.7%, 6.4%, 20.8%)
CIE-LABlab(50.01, 72.61, -40.35)
CIE-LCHlch(50.01, 83.07, 330.94°)
OKLaboklab(60.04% 0.2082 -0.1111)
OKLCHoklch(60.04% 0.236 331.9)
XYZxyz(34.6408, 18.4302, 49.8672)
Luminance0.1843 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31BD #31CA3E
analogous
#8B31CA #CA31BD #CA3171
triadic
#CA31BD #BDCA31 #31BDCA
tetradic
#CA31BD #CA8B31 #31CA3E #3171CA
square
#CA31BD #CA8B31 #31CA3E #3171CA
split-complementary
#CA31BD #71CA31 #31CA8B
monochromatic
#671961 #99258F #CA31BD #D860CE #E491DD

Accessibility & contrast

On white

4.48
#CA31BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#CA31BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA31BD
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31BD#FFFFFF#000000##000000
##CA31BD1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2469C1
Deuteranopia (green-blind)
#647EB9
Tritanopia (blue-blind)
#D34475
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ca31bd;
/* rgb */ color: rgb(202, 49, 189);
/* oklch */ color: oklch(60.0% 0.236 331.9);
Tailwind
colors: {
  custom: {
    50: '#de7ad1',
    500: '#ca31bd',
    950: '#000000',
  },
}
SCSS
$custom: #ca31bd;
$custom-light: #de7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31bd",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 305.098,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.60039,
    "c": 0.23599,
    "h": 331.9
  },
  "luminance": 0.18427
}

Semantic roles & 50–950 ramp

primary
#CA31BD
secondary
#88CF8E
accent
#E45144
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160A14
muted
#847C82

Preview Lab

Preview with #CA31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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