#CA42BF#CA42BF

#CA42BF is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.219 H 331.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#CA42BF
RGBrgb(202, 66, 191)
HSLhsl(305, 56%, 53%)
HSVhsv(305, 67%, 79%)
CMYKcmyk(0%, 67.3%, 5.4%, 20.8%)
CIE-LABlab(52.08, 67.33, -38.24)
CIE-LCHlch(52.08, 77.43, 330.40°)
OKLaboklab(61.56% 0.1921 -0.1051)
OKLCHoklch(61.56% 0.219 331.3)
XYZxyz(35.7093, 20.2173, 51.3017)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42BF #42CA4D
analogous
#9142CA #CA42BF #CA427B
triadic
#CA42BF #BFCA42 #42BFCA
tetradic
#CA42BF #CA9142 #42CA4D #427BCA
square
#CA42BF #CA9142 #42CA4D #427BCA
split-complementary
#CA42BF #7BCA42 #42CA91
monochromatic
#72206B #A22D98 #CA42BF #D772CF #E5A2DF

Accessibility & contrast

On white

4.16
#CA42BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CA42BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42BF
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42BF#FFFFFF#000000##000000
##CA42BF1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3970C3
Deuteranopia (green-blind)
#6A83BC
Tritanopia (blue-blind)
#D2517B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42bf;
/* rgb */ color: rgb(202, 66, 191);
/* oklch */ color: oklch(61.6% 0.219 331.3);
Tailwind
colors: {
  custom: {
    50: '#de81d3',
    500: '#ca42bf',
    950: '#000000',
  },
}
SCSS
$custom: #ca42bf;
$custom-light: #de81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42bf",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 304.853,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61559,
    "c": 0.21901,
    "h": 331.3
  },
  "luminance": 0.20215
}

Semantic roles & 50–950 ramp

primary
#CA42BF
secondary
#96D19B
accent
#DF5548
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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