#CB45B2#CB45B2

#CB45B2 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.4% C 0.206 H 336.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CB45B2
RGBrgb(203, 69, 178)
HSLhsl(311, 56%, 53%)
HSVhsv(311, 66%, 80%)
CMYKcmyk(0%, 66%, 12.3%, 20.4%)
CIE-LABlab(52.03, 64.45, -30.76)
CIE-LCHlch(52.03, 71.41, 334.48°)
OKLaboklab(61.35% 0.1885 -0.0837)
OKLCHoklch(61.35% 0.206 336.1)
XYZxyz(34.7930, 20.1701, 44.1716)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB45B2 #45CB5E
analogous
#A145CB #CB45B2 #CB456F
triadic
#CB45B2 #B2CB45 #45B2CB
tetradic
#CB45B2 #CBA145 #45CB5E #456FCB
square
#CB45B2 #CBA145 #45CB5E #456FCB
split-complementary
#CB45B2 #6FCB45 #45CBA1
monochromatic
#752165 #A52E8F #CB45B2 #D875C6 #E6A5DA

Accessibility & contrast

On white

4.17
#CB45B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CB45B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB45B2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB45B2#FFFFFF#000000##000000
##CB45B21.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#476FB5
Deuteranopia (green-blind)
#7283AF
Tritanopia (blue-blind)
#D54D75
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb45b2;
/* rgb */ color: rgb(203, 69, 178);
/* oklch */ color: oklch(61.4% 0.206 336.1);
Tailwind
colors: {
  custom: {
    50: '#de82c9',
    500: '#cb45b2',
    950: '#000000',
  },
}
SCSS
$custom: #cb45b2;
$custom-light: #de82c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb45b2",
  "rgb": {
    "r": 203,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 311.194,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61351,
    "c": 0.20627,
    "h": 336.1
  },
  "luminance": 0.20167
}

Semantic roles & 50–950 ramp

primary
#CB45B2
secondary
#99D3A4
accent
#E06448
background
#FEF8FC
surface
#FCF0F8
border
#D5CBD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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