#CB40B3#CB40B3

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

Color values

HEX#CB40B3
RGBrgb(203, 64, 179)
HSLhsl(310, 57%, 52%)
HSVhsv(310, 68%, 80%)
CMYKcmyk(0%, 68.5%, 11.8%, 20.4%)
CIE-LABlab(51.41, 66.47, -32.32)
CIE-LCHlch(51.41, 73.91, 334.07°)
OKLaboklab(60.91% 0.1942 -0.0881)
OKLCHoklch(60.91% 0.213 335.6)
XYZxyz(34.5991, 19.6210, 44.6041)
Luminance0.1962 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B3 #40CB58
analogous
#9E40CB #CB40B3 #CB406D
triadic
#CB40B3 #B3CB40 #40B3CB
tetradic
#CB40B3 #CB9E40 #40CB58 #406DCB
square
#CB40B3 #CB9E40 #40CB58 #406DCB
split-complementary
#CB40B3 #6DCB40 #40CB9E
monochromatic
#721F63 #A22C8D #CB40B3 #D870C6 #E5A0D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB40B3#FFFFFF#000000##000000
##CB40B31.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)
#416DB6
Deuteranopia (green-blind)
#7082B0
Tritanopia (blue-blind)
#D54974
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb40b3;
/* rgb */ color: rgb(203, 64, 179);
/* oklch */ color: oklch(60.9% 0.213 335.6);
Tailwind
colors: {
  custom: {
    50: '#de80ca',
    500: '#cb40b3',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b3;
$custom-light: #de80ca;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b3",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 310.36,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60914,
    "c": 0.21323,
    "h": 335.6
  },
  "luminance": 0.19618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB40B3

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

Preview Lab → · Contrast checker → · Palette generator →

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