#CB42BD#CB42BD

#CB42BD is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.6% C 0.218 H 332.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CB42BD
RGBrgb(203, 66, 189)
HSLhsl(306, 57%, 53%)
HSVhsv(306, 67%, 80%)
CMYKcmyk(0%, 67.5%, 6.9%, 20.4%)
CIE-LABlab(52.14, 67.25, -36.98)
CIE-LCHlch(52.14, 76.75, 331.19°)
OKLaboklab(61.6% 0.193 -0.1015)
OKLCHoklch(61.6% 0.218 332.3)
XYZxyz(35.7622, 20.2699, 50.1632)
Luminance0.2027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42BD #42CB50
analogous
#9442CB #CB42BD #CB4279
triadic
#CB42BD #BDCB42 #42BDCB
tetradic
#CB42BD #CB9442 #42CB50 #4279CB
square
#CB42BD #CB9442 #42CB50 #4279CB
split-complementary
#CB42BD #79CB42 #42CB94
monochromatic
#73206A #A32D97 #CB42BD #D872CE #E5A2DF

Accessibility & contrast

On white

4.16
#CB42BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CB42BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42BD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42BD#FFFFFF#000000##000000
##CB42BD1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B70C1
Deuteranopia (green-blind)
#6C83BA
Tritanopia (blue-blind)
#D34F7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42bd;
/* rgb */ color: rgb(203, 66, 189);
/* oklch */ color: oklch(61.6% 0.218 332.3);
Tailwind
colors: {
  custom: {
    50: '#de81d1',
    500: '#cb42bd',
    950: '#000000',
  },
}
SCSS
$custom: #cb42bd;
$custom-light: #de81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42bd",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 306.131,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.616,
    "c": 0.21806,
    "h": 332.3
  },
  "luminance": 0.20267
}

Semantic roles & 50–950 ramp

primary
#CB42BD
secondary
#97D29D
accent
#E05748
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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