#CB40A7#CB40A7

#CB40A7 is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.3% C 0.205 H 339.9°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CB40A7
RGBrgb(203, 64, 167)
HSLhsl(316, 57%, 52%)
HSVhsv(316, 68%, 80%)
CMYKcmyk(0%, 68.5%, 17.7%, 20.4%)
CIE-LABlab(50.87, 64.74, -26.12)
CIE-LCHlch(50.87, 69.81, 338.03°)
OKLaboklab(60.35% 0.1926 -0.0704)
OKLCHoklch(60.35% 0.205 339.9)
XYZxyz(33.4379, 19.1565, 38.4883)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A7 #40CB64
analogous
#AA40CB #CB40A7 #CB4061
triadic
#CB40A7 #A7CB40 #40A7CB
tetradic
#CB40A7 #CBAA40 #40CB64 #4061CB
square
#CB40A7 #CBAA40 #40CB64 #4061CB
split-complementary
#CB40A7 #61CB40 #40CBAA
monochromatic
#721F5C #A22C83 #CB40A7 #D870BD #E5A0D3

Accessibility & contrast

On white

4.35
#CB40A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CB40A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40A7
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40A7#FFFFFF#000000##000000
##CB40A71.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#496BAA
Deuteranopia (green-blind)
#7481A4
Tritanopia (blue-blind)
#D7446E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb40a7;
/* rgb */ color: rgb(203, 64, 167);
/* oklch */ color: oklch(60.3% 0.205 339.9);
Tailwind
colors: {
  custom: {
    50: '#df80c1',
    500: '#cb40a7',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a7;
$custom-light: #df80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a7",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 315.54,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60349,
    "c": 0.20503,
    "h": 339.9
  },
  "luminance": 0.19153
}

Semantic roles & 50–950 ramp

primary
#CB40A7
secondary
#95D2A5
accent
#E06F47
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB40A7

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

Preview Lab → · Contrast checker → · Palette generator →

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