#CB42B9#CB42B9

#CB42B9 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.4% C 0.215 H 333.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#CB42B9
RGBrgb(203, 66, 185)
HSLhsl(308, 57%, 53%)
HSVhsv(308, 67%, 80%)
CMYKcmyk(0%, 67.5%, 8.9%, 20.4%)
CIE-LABlab(51.95, 66.64, -34.96)
CIE-LCHlch(51.95, 75.25, 332.31°)
OKLaboklab(61.4% 0.1927 -0.0957)
OKLCHoklch(61.4% 0.215 333.6)
XYZxyz(35.3340, 20.0986, 47.9080)
Luminance0.2010 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B9 #42CB54
analogous
#9842CB #CB42B9 #CB4275
triadic
#CB42B9 #B9CB42 #42B9CB
tetradic
#CB42B9 #CB9842 #42CB54 #4275CB
square
#CB42B9 #CB9842 #42CB54 #4275CB
split-complementary
#CB42B9 #75CB42 #42CB98
monochromatic
#732068 #A32D93 #CB42B9 #D872CB #E5A2DD

Accessibility & contrast

On white

4.18
#CB42B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#CB42B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B9#FFFFFF#000000##000000
##CB42B91.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBC
Deuteranopia (green-blind)
#6E83B6
Tritanopia (blue-blind)
#D44E78
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42b9;
/* rgb */ color: rgb(203, 66, 185);
/* oklch */ color: oklch(61.4% 0.215 333.6);
Tailwind
colors: {
  custom: {
    50: '#de81ce',
    500: '#cb42b9',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b9;
$custom-light: #de81ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b9",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 307.883,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61399,
    "c": 0.21511,
    "h": 333.6
  },
  "luminance": 0.20096
}

Semantic roles & 50–950 ramp

primary
#CB42B9
secondary
#97D29F
accent
#E05C48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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