#CB40B0#CB40B0

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

Color values

HEX#CB40B0
RGBrgb(203, 64, 176)
HSLhsl(312, 57%, 52%)
HSVhsv(312, 68%, 80%)
CMYKcmyk(0%, 68.5%, 13.3%, 20.4%)
CIE-LABlab(51.27, 66.02, -30.78)
CIE-LCHlch(51.27, 72.85, 335.00°)
OKLaboklab(60.77% 0.1938 -0.0837)
OKLCHoklch(60.77% 0.211 336.6)
XYZxyz(34.2990, 19.5009, 43.0235)
Luminance0.1950 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B0 #40CB5B
analogous
#A140CB #CB40B0 #CB406A
triadic
#CB40B0 #B0CB40 #40B0CB
tetradic
#CB40B0 #CBA140 #40CB5B #406ACB
square
#CB40B0 #CBA140 #40CB5B #406ACB
split-complementary
#CB40B0 #6ACB40 #40CBA1
monochromatic
#721F62 #A22C8B #CB40B0 #D870C4 #E5A0D8

Accessibility & contrast

On white

4.29
#CB40B0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#CB40B0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B0
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B0#FFFFFF#000000##000000
##CB40B01.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#436DB3
Deuteranopia (green-blind)
#7182AD
Tritanopia (blue-blind)
#D54873
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb40b0;
/* rgb */ color: rgb(203, 64, 176);
/* oklch */ color: oklch(60.8% 0.211 336.6);
Tailwind
colors: {
  custom: {
    50: '#de80c8',
    500: '#cb40b0',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b0;
$custom-light: #de80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b0",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 311.655,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60769,
    "c": 0.21113,
    "h": 336.6
  },
  "luminance": 0.19498
}

Semantic roles & 50–950 ramp

primary
#CB40B0
secondary
#95D2A1
accent
#E06547
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B0

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

Preview Lab → · Contrast checker → · Palette generator →

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