#CB42BC#CB42BC

#CB42BC is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.217 H 332.6°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#CB42BC
RGBrgb(203, 66, 188)
HSLhsl(307, 57%, 53%)
HSVhsv(307, 67%, 80%)
CMYKcmyk(0%, 67.5%, 7.4%, 20.4%)
CIE-LABlab(52.09, 67.10, -36.48)
CIE-LCHlch(52.09, 76.37, 331.47°)
OKLaboklab(61.55% 0.1929 -0.1)
OKLCHoklch(61.55% 0.217 332.6)
XYZxyz(35.6540, 20.2266, 49.5935)
Luminance0.2022 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42BC #42CB51
analogous
#9542CB #CB42BC #CB4278
triadic
#CB42BC #BCCB42 #42BCCB
tetradic
#CB42BC #CB9542 #42CB51 #4278CB
square
#CB42BC #CB9542 #42CB51 #4278CB
split-complementary
#CB42BC #78CB42 #42CB95
monochromatic
#73206A #A32D96 #CB42BC #D872CD #E5A2DE

Accessibility & contrast

On white

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

On black

5.04
#CB42BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42BC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42BC#FFFFFF#000000##000000
##CB42BC1.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C70C0
Deuteranopia (green-blind)
#6D83B9
Tritanopia (blue-blind)
#D44F7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42bc;
/* rgb */ color: rgb(203, 66, 188);
/* oklch */ color: oklch(61.6% 0.217 332.6);
Tailwind
colors: {
  custom: {
    50: '#de81d0',
    500: '#cb42bc',
    950: '#000000',
  },
}
SCSS
$custom: #cb42bc;
$custom-light: #de81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42bc",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 306.569,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6155,
    "c": 0.21732,
    "h": 332.6
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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