#CB40B2#CB40B2

#CB40B2 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.9% C 0.213 H 336.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#CB40B2
RGBrgb(203, 64, 178)
HSLhsl(311, 57%, 52%)
HSVhsv(311, 68%, 80%)
CMYKcmyk(0%, 68.5%, 12.3%, 20.4%)
CIE-LABlab(51.36, 66.32, -31.81)
CIE-LCHlch(51.36, 73.55, 334.38°)
OKLaboklab(60.87% 0.1941 -0.0866)
OKLCHoklch(60.87% 0.213 336)
XYZxyz(34.4983, 19.5806, 44.0734)
Luminance0.1958 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B2 #40CB59
analogous
#9E40CB #CB40B2 #CB406D
triadic
#CB40B2 #B2CB40 #40B2CB
tetradic
#CB40B2 #CB9E40 #40CB59 #406DCB
square
#CB40B2 #CB9E40 #40CB59 #406DCB
split-complementary
#CB40B2 #6DCB40 #40CB9E
monochromatic
#721F63 #A22C8D #CB40B2 #D870C5 #E5A0D9

Accessibility & contrast

On white

4.27
#CB40B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#CB40B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B2#FFFFFF#000000##000000
##CB40B21.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#7082AF
Tritanopia (blue-blind)
#D54974
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb40b2;
/* rgb */ color: rgb(203, 64, 178);
/* oklch */ color: oklch(60.9% 0.213 336.0);
Tailwind
colors: {
  custom: {
    50: '#de80c9',
    500: '#cb40b2',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b2;
$custom-light: #de80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b2",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 310.791,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60865,
    "c": 0.21253,
    "h": 336
  },
  "luminance": 0.19578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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