#CB40A8#CB40A8

#CB40A8 is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.4% C 0.206 H 339.5°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CB40A8
RGBrgb(203, 64, 168)
HSLhsl(315, 57%, 52%)
HSVhsv(315, 68%, 80%)
CMYKcmyk(0%, 68.5%, 17.2%, 20.4%)
CIE-LABlab(50.91, 64.88, -26.64)
CIE-LCHlch(50.91, 70.13, 337.68°)
OKLaboklab(60.4% 0.1927 -0.0719)
OKLCHoklch(60.4% 0.206 339.5)
XYZxyz(33.5307, 19.1936, 38.9770)
Luminance0.1919 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40A8 #40CB63
analogous
#A940CB #CB40A8 #CB4062
triadic
#CB40A8 #A8CB40 #40A8CB
tetradic
#CB40A8 #CBA940 #40CB63 #4062CB
square
#CB40A8 #CBA940 #40CB63 #4062CB
split-complementary
#CB40A8 #62CB40 #40CBA9
monochromatic
#721F5D #A22C84 #CB40A8 #D870BE #E5A0D4

Accessibility & contrast

On white

4.34
#CB40A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CB40A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40A8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40A8#FFFFFF#000000##000000
##CB40A81.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#486BAB
Deuteranopia (green-blind)
#7481A5
Tritanopia (blue-blind)
#D6456E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb40a8;
/* rgb */ color: rgb(203, 64, 168);
/* oklch */ color: oklch(60.4% 0.206 339.5);
Tailwind
colors: {
  custom: {
    50: '#df80c2',
    500: '#cb40a8',
    950: '#000000',
  },
}
SCSS
$custom: #cb40a8;
$custom-light: #df80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40a8",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 315.108,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60395,
    "c": 0.20569,
    "h": 339.5
  },
  "luminance": 0.1919
}

Semantic roles & 50–950 ramp

primary
#CB40A8
secondary
#95D2A4
accent
#E06E47
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB40A8

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

Preview Lab → · Contrast checker → · Palette generator →

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