#CA42BA#CA42BA

#CA42BA is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.3% C 0.215 H 333.0°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CA42BA
RGBrgb(202, 66, 186)
HSLhsl(307, 56%, 53%)
HSVhsv(307, 67%, 79%)
CMYKcmyk(0%, 67.3%, 7.9%, 20.8%)
CIE-LABlab(51.84, 66.55, -35.73)
CIE-LCHlch(51.84, 75.53, 331.77°)
OKLaboklab(61.3% 0.1917 -0.0979)
OKLCHoklch(61.3% 0.215 333)
XYZxyz(35.1684, 20.0010, 48.4532)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42BA #42CA52
analogous
#9642CA #CA42BA #CA4276
triadic
#CA42BA #BACA42 #42BACA
tetradic
#CA42BA #CA9642 #42CA52 #4276CA
square
#CA42BA #CA9642 #42CA52 #4276CA
split-complementary
#CA42BA #76CA42 #42CA96
monochromatic
#722068 #A22D94 #CA42BA #D772CB #E5A2DD

Accessibility & contrast

On white

4.20
#CA42BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CA42BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42BA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42BA#FFFFFF#000000##000000
##CA42BA1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBD
Deuteranopia (green-blind)
#6D83B7
Tritanopia (blue-blind)
#D34E79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42ba;
/* rgb */ color: rgb(202, 66, 186);
/* oklch */ color: oklch(61.3% 0.215 333.0);
Tailwind
colors: {
  custom: {
    50: '#de81cf',
    500: '#ca42ba',
    950: '#000000',
  },
}
SCSS
$custom: #ca42ba;
$custom-light: #de81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42ba",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 307.059,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61304,
    "c": 0.21527,
    "h": 333
  },
  "luminance": 0.19998
}

Semantic roles & 50–950 ramp

primary
#CA42BA
secondary
#96D19D
accent
#DF5A48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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