#CA42C1#CA42C1

#CA42C1 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.221 H 330.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CA42C1
RGBrgb(202, 66, 193)
HSLhsl(304, 56%, 53%)
HSVhsv(304, 67%, 79%)
CMYKcmyk(0%, 67.3%, 4.5%, 20.8%)
CIE-LABlab(52.18, 67.65, -39.24)
CIE-LCHlch(52.18, 78.21, 329.88°)
OKLaboklab(61.66% 0.1923 -0.108)
OKLCHoklch(61.66% 0.221 330.7)
XYZxyz(35.9308, 20.3060, 52.4687)
Luminance0.2030 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42C1 #42CA4B
analogous
#8F42CA #CA42C1 #CA427D
triadic
#CA42C1 #C1CA42 #42C1CA
tetradic
#CA42C1 #CA8F42 #42CA4B #427DCA
square
#CA42C1 #CA8F42 #42CA4B #427DCA
split-complementary
#CA42C1 #7DCA42 #42CA8F
monochromatic
#72206C #A22D9A #CA42C1 #D772D1 #E5A2E0

Accessibility & contrast

On white

4.15
#CA42C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CA42C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42C1
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42C1#FFFFFF#000000##000000
##CA42C11.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3770C5
Deuteranopia (green-blind)
#6983BE
Tritanopia (blue-blind)
#D2517C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42c1;
/* rgb */ color: rgb(202, 66, 193);
/* oklch */ color: oklch(61.7% 0.221 330.7);
Tailwind
colors: {
  custom: {
    50: '#de81d4',
    500: '#ca42c1',
    950: '#000000',
  },
}
SCSS
$custom: #ca42c1;
$custom-light: #de81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42c1",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 303.971,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61663,
    "c": 0.22052,
    "h": 330.7
  },
  "luminance": 0.20303
}

Semantic roles & 50–950 ramp

primary
#CA42C1
secondary
#96D19A
accent
#DF5248
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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