#CA31AA#CA31AA

#CA31AA is a mid, highly saturated pink. Relative luminance 0.177; OKLCH L 59.1% C 0.223 H 338.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#CA31AA
RGBrgb(202, 49, 170)
HSLhsl(313, 61%, 49%)
HSVhsv(313, 76%, 79%)
CMYKcmyk(0%, 75.7%, 15.8%, 20.8%)
CIE-LABlab(49.08, 69.88, -30.68)
CIE-LCHlch(49.08, 76.32, 336.29°)
OKLaboklab(59.06% 0.207 -0.0833)
OKLCHoklch(59.06% 0.223 338.1)
XYZxyz(32.7119, 17.6586, 39.7081)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31AA #31CA51
analogous
#9E31CA #CA31AA #CA315E
triadic
#CA31AA #AACA31 #31AACA
tetradic
#CA31AA #CA9E31 #31CA51 #315ECA
square
#CA31AA #CA9E31 #31CA51 #315ECA
split-complementary
#CA31AA #5ECA31 #31CA9E
monochromatic
#671957 #992581 #CA31AA #D860BF #E491D3

Accessibility & contrast

On white

4.63
#CA31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#CA31AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CA31AA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31AA#FFFFFF#000000##FFFFFF
##CA31AA1.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AD
Deuteranopia (green-blind)
#6D7DA6
Tritanopia (blue-blind)
#D53A6B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ca31aa;
/* rgb */ color: rgb(202, 49, 170);
/* oklch */ color: oklch(59.1% 0.223 338.1);
Tailwind
colors: {
  custom: {
    50: '#de79c3',
    500: '#ca31aa',
    950: '#000000',
  },
}
SCSS
$custom: #ca31aa;
$custom-light: #de79c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31aa",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 312.549,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.59064,
    "c": 0.22311,
    "h": 338.1
  },
  "luminance": 0.17655
}

Semantic roles & 50–950 ramp

primary
#CA31AA
secondary
#88CF97
accent
#E46544
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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