#CA23A7#CA23A7

#CA23A7 is a mid, highly saturated pink. Relative luminance 0.165; OKLCH L 58.0% C 0.233 H 338.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CA23A7
RGBrgb(202, 35, 167)
HSLhsl(313, 70%, 46%)
HSVhsv(313, 83%, 79%)
CMYKcmyk(0%, 82.7%, 17.3%, 20.8%)
CIE-LABlab(47.69, 73.07, -31.08)
CIE-LCHlch(47.69, 79.40, 336.96°)
OKLaboklab(58.02% 0.2175 -0.0844)
OKLCHoklch(58.02% 0.233 338.8)
XYZxyz(31.9341, 16.5519, 38.0648)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA23A7 #23CA46
analogous
#9A23CA #CA23A7 #CA2354
triadic
#CA23A7 #A7CA23 #23A7CA
tetradic
#CA23A7 #CA9A23 #23CA46 #2354CA
square
#CA23A7 #CA9A23 #23CA46 #2354CA
split-complementary
#CA23A7 #54CA23 #23CA9A
monochromatic
#621151 #961A7C #CA23A7 #E04AC0 #E97FD3

Accessibility & contrast

On white

4.87
#CA23A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#CA23A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA23A7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA23A7#FFFFFF#000000##FFFFFF
##CA23A71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AA
Deuteranopia (green-blind)
#6A7AA3
Tritanopia (blue-blind)
#D62D66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca23a7;
/* rgb */ color: rgb(202, 35, 167);
/* oklch */ color: oklch(58.0% 0.233 338.8);
Tailwind
colors: {
  custom: {
    50: '#df74c1',
    500: '#ca23a7',
    950: '#000000',
  },
}
SCSS
$custom: #ca23a7;
$custom-light: #df74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca23a7",
  "rgb": {
    "r": 202,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 312.575,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5802,
    "c": 0.23331,
    "h": 338.8
  },
  "luminance": 0.16549
}

Semantic roles & 50–950 ramp

primary
#CA23A7
secondary
#78D18A
accent
#ED603B
background
#FEF7FB
surface
#FCEEF7
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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