#CA42BE#CA42BE

#CA42BE is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.5% C 0.218 H 331.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CA42BE
RGBrgb(202, 66, 190)
HSLhsl(305, 56%, 53%)
HSVhsv(305, 67%, 79%)
CMYKcmyk(0%, 67.3%, 5.9%, 20.8%)
CIE-LABlab(52.03, 67.17, -37.74)
CIE-LCHlch(52.03, 77.05, 330.67°)
OKLaboklab(61.51% 0.1921 -0.1037)
OKLCHoklch(61.51% 0.218 331.6)
XYZxyz(35.5996, 20.1734, 50.7241)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42BE #42CA4E
analogous
#9242CA #CA42BE #CA427A
triadic
#CA42BE #BECA42 #42BECA
tetradic
#CA42BE #CA9242 #42CA4E #427ACA
square
#CA42BE #CA9242 #42CA4E #427ACA
split-complementary
#CA42BE #7ACA42 #42CA92
monochromatic
#72206A #A22D97 #CA42BE #D772CE #E5A2DF

Accessibility & contrast

On white

4.17
#CA42BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CA42BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42BE
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42BE#FFFFFF#000000##000000
##CA42BE1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A70C2
Deuteranopia (green-blind)
#6B83BB
Tritanopia (blue-blind)
#D2507B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42be;
/* rgb */ color: rgb(202, 66, 190);
/* oklch */ color: oklch(61.5% 0.218 331.6);
Tailwind
colors: {
  custom: {
    50: '#de81d2',
    500: '#ca42be',
    950: '#000000',
  },
}
SCSS
$custom: #ca42be;
$custom-light: #de81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42be",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 305.294,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61508,
    "c": 0.21826,
    "h": 331.6
  },
  "luminance": 0.20171
}

Semantic roles & 50–950 ramp

primary
#CA42BE
secondary
#96D19C
accent
#DF5648
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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