#CB40A1#CB40A1

#CB40A1 is a mid, highly saturated pink. Relative luminance 0.189; OKLCH L 60.1% C 0.201 H 342.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CB40A1
RGBrgb(203, 64, 161)
HSLhsl(318, 57%, 52%)
HSVhsv(318, 68%, 80%)
CMYKcmyk(0%, 68.5%, 20.7%, 20.4%)
CIE-LABlab(50.62, 63.91, -22.97)
CIE-LCHlch(50.62, 67.91, 340.23°)
OKLaboklab(60.08% 0.1915 -0.0616)
OKLCHoklch(60.08% 0.201 342.2)
XYZxyz(32.8960, 18.9397, 35.6346)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A1 #40CB6A
analogous
#AF40CB #CB40A1 #CB405C
triadic
#CB40A1 #A1CB40 #40A1CB
tetradic
#CB40A1 #CBAF40 #40CB6A #405CCB
square
#CB40A1 #CBAF40 #40CB6A #405CCB
split-complementary
#CB40A1 #5CCB40 #40CBAF
monochromatic
#721F59 #A22C7E #CB40A1 #D870B9 #E5A0D0

Accessibility & contrast

On white

4.39
#CB40A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CB40A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40A1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40A1#FFFFFF#000000##000000
##CB40A11.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA4
Deuteranopia (green-blind)
#76819E
Tritanopia (blue-blind)
#D7416B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb40a1;
/* rgb */ color: rgb(203, 64, 161);
/* oklch */ color: oklch(60.1% 0.201 342.2);
Tailwind
colors: {
  custom: {
    50: '#df7fbd',
    500: '#cb40a1',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a1;
$custom-light: #df7fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a1",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 318.129,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60082,
    "c": 0.20117,
    "h": 342.2
  },
  "luminance": 0.18937
}

Semantic roles & 50–950 ramp

primary
#CB40A1
secondary
#95D2A7
accent
#E07647
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB40A1

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

Preview Lab → · Contrast checker → · Palette generator →

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