#CA28B7#CA28B7

#CA28B7 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 59.1% C 0.240 H 333.7°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#CA28B7
RGBrgb(202, 40, 183)
HSLhsl(307, 67%, 47%)
HSVhsv(307, 80%, 79%)
CMYKcmyk(0%, 80.2%, 9.4%, 20.8%)
CIE-LABlab(48.88, 74.11, -38.64)
CIE-LCHlch(48.88, 83.58, 332.46°)
OKLaboklab(59.13% 0.215 -0.1061)
OKLCHoklch(59.13% 0.24 333.7)
XYZxyz(33.6635, 17.4961, 46.3947)
Luminance0.1749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA28B7 #28CA3B
analogous
#8C28CA #CA28B7 #CA2866
triadic
#CA28B7 #B7CA28 #28B7CA
tetradic
#CA28B7 #CA8C28 #28CA3B #2866CA
square
#CA28B7 #CA8C28 #28CA3B #2866CA
split-complementary
#CA28B7 #66CA28 #28CA8C
monochromatic
#64145A #971E89 #CA28B7 #DD52CD #E785DC

Accessibility & contrast

On white

4.67
#CA28B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#CA28B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CA28B7
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA28B7#FFFFFF#000000##FFFFFF
##CA28B71.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BB
Deuteranopia (green-blind)
#647CB3
Tritanopia (blue-blind)
#D43B70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca28b7;
/* rgb */ color: rgb(202, 40, 183);
/* oklch */ color: oklch(59.1% 0.240 333.7);
Tailwind
colors: {
  custom: {
    50: '#de76cd',
    500: '#ca28b7',
    950: '#000000',
  },
}
SCSS
$custom: #ca28b7;
$custom-light: #de76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca28b7",
  "rgb": {
    "r": 202,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 307.037,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.59127,
    "c": 0.23975,
    "h": 333.7
  },
  "luminance": 0.17493
}

Semantic roles & 50–950 ramp

primary
#CA28B7
secondary
#7ED087
accent
#EA523E
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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