#CA28B1#CA28B1

#CA28B1 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.8% C 0.236 H 335.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#CA28B1
RGBrgb(202, 40, 177)
HSLhsl(309, 67%, 47%)
HSVhsv(309, 80%, 79%)
CMYKcmyk(0%, 80.2%, 12.4%, 20.8%)
CIE-LABlab(48.58, 73.26, -35.60)
CIE-LCHlch(48.58, 81.45, 334.09°)
OKLaboklab(58.81% 0.2148 -0.0973)
OKLCHoklch(58.81% 0.236 335.6)
XYZxyz(33.0523, 17.2516, 43.1756)
Luminance0.1725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA28B1 #28CA41
analogous
#9228CA #CA28B1 #CA2860
triadic
#CA28B1 #B1CA28 #28B1CA
tetradic
#CA28B1 #CA9228 #28CA41 #2860CA
square
#CA28B1 #CA9228 #28CA41 #2860CA
split-complementary
#CA28B1 #60CA28 #28CA92
monochromatic
#641457 #971E84 #CA28B1 #DD52C7 #E785D8

Accessibility & contrast

On white

4.72
#CA28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#CA28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA28B1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA28B1#FFFFFF#000000##FFFFFF
##CA28B11.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2964B4
Deuteranopia (green-blind)
#677CAD
Tritanopia (blue-blind)
#D4376C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ca28b1;
/* rgb */ color: rgb(202, 40, 177);
/* oklch */ color: oklch(58.8% 0.236 335.6);
Tailwind
colors: {
  custom: {
    50: '#df76c9',
    500: '#ca28b1',
    950: '#000000',
  },
}
SCSS
$custom: #ca28b1;
$custom-light: #df76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca28b1",
  "rgb": {
    "r": 202,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 309.259,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58812,
    "c": 0.23578,
    "h": 335.6
  },
  "luminance": 0.17248
}

Semantic roles & 50–950 ramp

primary
#CA28B1
secondary
#7ED08A
accent
#EA583E
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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