#CA42C7#CA42C7

#CA42C7 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.225 H 328.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CA42C7
RGBrgb(202, 66, 199)
HSLhsl(301, 56%, 53%)
HSVhsv(301, 67%, 79%)
CMYKcmyk(0%, 67.3%, 1.5%, 20.8%)
CIE-LABlab(52.49, 68.61, -42.22)
CIE-LCHlch(52.49, 80.56, 328.39°)
OKLaboklab(61.98% 0.1926 -0.1166)
OKLCHoklch(61.98% 0.225 328.8)
XYZxyz(36.6138, 20.5791, 56.0655)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42C7 #42CA45
analogous
#8942CA #CA42C7 #CA4283
triadic
#CA42C7 #C7CA42 #42C7CA
tetradic
#CA42C7 #CA8942 #42CA45 #4283CA
square
#CA42C7 #CA8942 #42CA45 #4283CA
split-complementary
#CA42C7 #83CA42 #42CA89
monochromatic
#722070 #A22D9F #CA42C7 #D772D5 #E5A2E3

Accessibility & contrast

On white

4.11
#CA42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#CA42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42C7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42C7#FFFFFF#000000##000000
##CA42C71.004.115.125.12
#FFFFFF4.111.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3172CB
Deuteranopia (green-blind)
#6684C3
Tritanopia (blue-blind)
#D1547F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ca42c7;
/* rgb */ color: rgb(202, 66, 199);
/* oklch */ color: oklch(62.0% 0.225 328.8);
Tailwind
colors: {
  custom: {
    50: '#de81d8',
    500: '#ca42c7',
    950: '#000000',
  },
}
SCSS
$custom: #ca42c7;
$custom-light: #de81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42c7",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 301.324,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61981,
    "c": 0.22512,
    "h": 328.8
  },
  "luminance": 0.20577
}

Semantic roles & 50–950 ramp

primary
#CA42C7
secondary
#96D198
accent
#DF4C48
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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