#CA40B1#CA40B1

#CA40B1 is a mid, highly saturated pink. Relative luminance 0.194; OKLCH L 60.7% C 0.211 H 336.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CA40B1
RGBrgb(202, 64, 177)
HSLhsl(311, 57%, 52%)
HSVhsv(311, 68%, 79%)
CMYKcmyk(0%, 68.3%, 12.4%, 20.8%)
CIE-LABlab(51.15, 65.93, -31.56)
CIE-LCHlch(51.15, 73.09, 334.42°)
OKLaboklab(60.67% 0.193 -0.0859)
OKLCHoklch(60.67% 0.211 336)
XYZxyz(34.1268, 19.4006, 43.5338)
Luminance0.1940 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B1 #40CA59
analogous
#9E40CA #CA40B1 #CA406C
triadic
#CA40B1 #B1CA40 #40B1CA
tetradic
#CA40B1 #CA9E40 #40CA59 #406CCA
square
#CA40B1 #CA9E40 #40CA59 #406CCA
split-complementary
#CA40B1 #6CCA40 #40CA9E
monochromatic
#701F62 #A02C8B #CA40B1 #D770C5 #E5A0D8

Accessibility & contrast

On white

4.30
#CA40B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#CA40B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B1
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B1#FFFFFF#000000##000000
##CA40B11.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#426DB4
Deuteranopia (green-blind)
#7081AE
Tritanopia (blue-blind)
#D44973
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca40b1;
/* rgb */ color: rgb(202, 64, 177);
/* oklch */ color: oklch(60.7% 0.211 336.0);
Tailwind
colors: {
  custom: {
    50: '#de80c8',
    500: '#ca40b1',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b1;
$custom-light: #de80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b1",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 310.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60669,
    "c": 0.21122,
    "h": 336
  },
  "luminance": 0.19398
}

Semantic roles & 50–950 ramp

primary
#CA40B1
secondary
#95D1A0
accent
#E06348
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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