#CB40B1#CB40B1

#CB40B1 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.8% C 0.212 H 336.3°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CB40B1
RGBrgb(203, 64, 177)
HSLhsl(311, 57%, 52%)
HSVhsv(311, 68%, 80%)
CMYKcmyk(0%, 68.5%, 12.8%, 20.4%)
CIE-LABlab(51.31, 66.17, -31.30)
CIE-LCHlch(51.31, 73.20, 334.69°)
OKLaboklab(60.82% 0.194 -0.0851)
OKLCHoklch(60.82% 0.212 336.3)
XYZxyz(34.3983, 19.5406, 43.5465)
Luminance0.1954 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B1 #40CB5A
analogous
#A040CB #CB40B1 #CB406C
triadic
#CB40B1 #B1CB40 #40B1CB
tetradic
#CB40B1 #CBA040 #40CB5A #406CCB
square
#CB40B1 #CBA040 #40CB5A #406CCB
split-complementary
#CB40B1 #6CCB40 #40CBA0
monochromatic
#721F62 #A22C8C #CB40B1 #D870C5 #E5A0D8

Accessibility & contrast

On white

4.28
#CB40B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CB40B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B1
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B1#FFFFFF#000000##000000
##CB40B11.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb40b1;
/* rgb */ color: rgb(203, 64, 177);
/* oklch */ color: oklch(60.8% 0.212 336.3);
Tailwind
colors: {
  custom: {
    50: '#de80c8',
    500: '#cb40b1',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b1;
$custom-light: #de80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b1",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 177
  },
  "hsl": {
    "h": 311.223,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60817,
    "c": 0.21183,
    "h": 336.3
  },
  "luminance": 0.19538
}

Semantic roles & 50–950 ramp

primary
#CB40B1
secondary
#95D2A0
accent
#E06447
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B1

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

Preview Lab → · Contrast checker → · Palette generator →

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