#CA5791#CA5791

#CA5791 is a mid, vivid pink. Relative luminance 0.214; OKLCH L 61.9% C 0.159 H 351.3°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#CA5791
RGBrgb(202, 87, 145)
HSLhsl(330, 52%, 57%)
HSVhsv(330, 57%, 79%)
CMYKcmyk(0%, 56.9%, 28.2%, 20.8%)
CIE-LABlab(53.41, 51.82, -9.29)
CIE-LCHlch(53.41, 52.65, 349.84°)
OKLaboklab(61.91% 0.157 -0.024)
OKLCHoklch(61.91% 0.159 351.3)
XYZxyz(32.8775, 21.4204, 29.1856)
Luminance0.2142 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA5791 #57CA90
analogous
#C957CA #CA5791 #CA5758
triadic
#CA5791 #91CA57 #5791CA
tetradic
#CA5791 #CAC957 #57CA90 #5758CA
square
#CA5791 #CAC957 #57CA90 #5758CA
split-complementary
#CA5791 #58CA57 #57CAC9
monochromatic
#7F2854 #AD3772 #CA5791 #D986AF #E7B4CE

Accessibility & contrast

On white

3.97
#CA5791 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#CA5791 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA5791
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA5791#FFFFFF#000000##000000
##CA57911.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#667393
Deuteranopia (green-blind)
#85878E
Tritanopia (blue-blind)
#D8526E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ca5791;
/* rgb */ color: rgb(202, 87, 145);
/* oklch */ color: oklch(61.9% 0.159 351.3);
Tailwind
colors: {
  custom: {
    50: '#dd8bb1',
    500: '#ca5791',
    950: '#000000',
  },
}
SCSS
$custom: #ca5791;
$custom-light: #dd8bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca5791",
  "rgb": {
    "r": 202,
    "g": 87,
    "b": 145
  },
  "hsl": {
    "h": 329.739,
    "s": 52.036,
    "l": 56.667
  },
  "oklch": {
    "l": 0.61912,
    "c": 0.15885,
    "h": 351.3
  },
  "luminance": 0.21417
}

Semantic roles & 50–950 ramp

primary
#CA5791
secondary
#A7D6BE
accent
#DB934C
background
#FEF8FA
surface
#FCF0F5
border
#D5CBCF
text
#150C10
muted
#847D7F

Preview Lab

Preview with #CA5791

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

Preview Lab → · Contrast checker → · Palette generator →

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