#CA23A8#CA23A8

#CA23A8 is a mid, highly saturated pink. Relative luminance 0.166; OKLCH L 58.1% C 0.234 H 338.5°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CA23A8
RGBrgb(202, 35, 168)
HSLhsl(312, 70%, 46%)
HSVhsv(312, 83%, 79%)
CMYKcmyk(0%, 82.7%, 16.8%, 20.8%)
CIE-LABlab(47.74, 73.20, -31.60)
CIE-LCHlch(47.74, 79.73, 336.65°)
OKLaboklab(58.07% 0.2176 -0.0858)
OKLCHoklch(58.07% 0.234 338.5)
XYZxyz(32.0269, 16.5890, 38.5535)
Luminance0.1659 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA23A8 #23CA45
analogous
#9923CA #CA23A8 #CA2354
triadic
#CA23A8 #A8CA23 #23A8CA
tetradic
#CA23A8 #CA9923 #23CA45 #2354CA
square
#CA23A8 #CA9923 #23CA45 #2354CA
split-complementary
#CA23A8 #54CA23 #23CA99
monochromatic
#621151 #961A7D #CA23A8 #E04AC1 #E97FD3

Accessibility & contrast

On white

4.86
#CA23A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#CA23A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA23A8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA23A8#FFFFFF#000000##FFFFFF
##CA23A81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AB
Deuteranopia (green-blind)
#697AA4
Tritanopia (blue-blind)
#D62E66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca23a8;
/* rgb */ color: rgb(202, 35, 168);
/* oklch */ color: oklch(58.1% 0.234 338.5);
Tailwind
colors: {
  custom: {
    50: '#df74c2',
    500: '#ca23a8',
    950: '#000000',
  },
}
SCSS
$custom: #ca23a8;
$custom-light: #df74c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca23a8",
  "rgb": {
    "r": 202,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 312.216,
    "s": 70.464,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5807,
    "c": 0.23393,
    "h": 338.5
  },
  "luminance": 0.16586
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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