#CA28B4#CA28B4

#CA28B4 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 59.0% C 0.238 H 334.7°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#CA28B4
RGBrgb(202, 40, 180)
HSLhsl(308, 67%, 47%)
HSVhsv(308, 80%, 79%)
CMYKcmyk(0%, 80.2%, 10.9%, 20.8%)
CIE-LABlab(48.73, 73.68, -37.12)
CIE-LCHlch(48.73, 82.51, 333.26°)
OKLaboklab(58.97% 0.2149 -0.1017)
OKLCHoklch(58.97% 0.238 334.7)
XYZxyz(33.3546, 17.3725, 44.7677)
Luminance0.1737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA28B4 #28CA3E
analogous
#8F28CA #CA28B4 #CA2863
triadic
#CA28B4 #B4CA28 #28B4CA
tetradic
#CA28B4 #CA8F28 #28CA3E #2863CA
square
#CA28B4 #CA8F28 #28CA3E #2863CA
split-complementary
#CA28B4 #63CA28 #28CA8F
monochromatic
#641459 #971E86 #CA28B4 #DD52CA #E785DA

Accessibility & contrast

On white

4.69
#CA28B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#CA28B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA28B4
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA28B4#FFFFFF#000000##FFFFFF
##CA28B41.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B8
Deuteranopia (green-blind)
#657CB0
Tritanopia (blue-blind)
#D4396E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca28b4;
/* rgb */ color: rgb(202, 40, 180);
/* oklch */ color: oklch(59.0% 0.238 334.7);
Tailwind
colors: {
  custom: {
    50: '#de76cb',
    500: '#ca28b4',
    950: '#000000',
  },
}
SCSS
$custom: #ca28b4;
$custom-light: #de76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca28b4",
  "rgb": {
    "r": 202,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 308.148,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58968,
    "c": 0.23776,
    "h": 334.7
  },
  "luminance": 0.17369
}

Semantic roles & 50–950 ramp

primary
#CA28B4
secondary
#7ED089
accent
#EA553E
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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