#CB42B8#CB42B8

#CB42B8 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.3% C 0.214 H 333.9°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CB42B8
RGBrgb(203, 66, 184)
HSLhsl(308, 57%, 53%)
HSVhsv(308, 67%, 80%)
CMYKcmyk(0%, 67.5%, 9.4%, 20.4%)
CIE-LABlab(51.90, 66.48, -34.46)
CIE-LCHlch(51.90, 74.88, 332.60°)
OKLaboklab(61.35% 0.1926 -0.0942)
OKLCHoklch(61.35% 0.214 333.9)
XYZxyz(35.2288, 20.0565, 47.3540)
Luminance0.2005 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B8 #42CB55
analogous
#9942CB #CB42B8 #CB4274
triadic
#CB42B8 #B8CB42 #42B8CB
tetradic
#CB42B8 #CB9942 #42CB55 #4274CB
square
#CB42B8 #CB9942 #42CB55 #4274CB
split-complementary
#CB42B8 #74CB42 #42CB99
monochromatic
#732067 #A32D93 #CB42B8 #D872CA #E5A2DC

Accessibility & contrast

On white

4.19
#CB42B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CB42B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B8#FFFFFF#000000##000000
##CB42B81.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6FBB
Deuteranopia (green-blind)
#6E83B5
Tritanopia (blue-blind)
#D44D78
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42b8;
/* rgb */ color: rgb(203, 66, 184);
/* oklch */ color: oklch(61.3% 0.214 333.9);
Tailwind
colors: {
  custom: {
    50: '#de81cd',
    500: '#cb42b8',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b8;
$custom-light: #de81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b8",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 308.321,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61349,
    "c": 0.21438,
    "h": 333.9
  },
  "luminance": 0.20054
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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