#CA51A2#CA51A2

#CA51A2 is a mid, vivid pink. Relative luminance 0.210; OKLCH L 61.8% C 0.178 H 342.6°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#CA51A2
RGBrgb(202, 81, 162)
HSLhsl(320, 53%, 55%)
HSVhsv(320, 60%, 79%)
CMYKcmyk(0%, 59.9%, 19.8%, 20.8%)
CIE-LABlab(53.01, 56.87, -19.90)
CIE-LCHlch(53.01, 60.25, 340.71°)
OKLaboklab(61.82% 0.1698 -0.0531)
OKLCHoklch(61.82% 0.178 342.6)
XYZxyz(33.8220, 21.0531, 36.4578)
Luminance0.2105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA51A2 #51CA79
analogous
#B651CA #CA51A2 #CA5165
triadic
#CA51A2 #A2CA51 #51A2CA
tetradic
#CA51A2 #CAB651 #51CA79 #5165CA
square
#CA51A2 #CAB651 #51CA79 #5165CA
split-complementary
#CA51A2 #65CA51 #51CAB6
monochromatic
#7B255F #AA3483 #CA51A2 #D880BB #E7AFD4

Accessibility & contrast

On white

4.03
#CA51A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#CA51A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA51A2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA51A2#FFFFFF#000000##000000
##CA51A21.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A72A5
Deuteranopia (green-blind)
#7D869F
Tritanopia (blue-blind)
#D65272
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ca51a2;
/* rgb */ color: rgb(202, 81, 162);
/* oklch */ color: oklch(61.8% 0.178 342.6);
Tailwind
colors: {
  custom: {
    50: '#dd88bd',
    500: '#ca51a2',
    950: '#000000',
  },
}
SCSS
$custom: #ca51a2;
$custom-light: #dd88bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca51a2",
  "rgb": {
    "r": 202,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 319.835,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.61818,
    "c": 0.1779,
    "h": 342.6
  },
  "luminance": 0.2105
}

Semantic roles & 50–950 ramp

primary
#CA51A2
secondary
#A2D5B3
accent
#DD7B4B
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#150C12
muted
#847D81

Preview Lab

Preview with #CA51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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