#CB42B6#CB42B6

#CB42B6 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.3% C 0.213 H 334.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#CB42B6
RGBrgb(203, 66, 182)
HSLhsl(309, 57%, 53%)
HSVhsv(309, 67%, 80%)
CMYKcmyk(0%, 67.5%, 10.3%, 20.4%)
CIE-LABlab(51.81, 66.18, -33.44)
CIE-LCHlch(51.81, 74.15, 333.19°)
OKLaboklab(61.25% 0.1924 -0.0913)
OKLCHoklch(61.25% 0.213 334.6)
XYZxyz(35.0206, 19.9733, 46.2577)
Luminance0.1997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B6 #42CB57
analogous
#9B42CB #CB42B6 #CB4272
triadic
#CB42B6 #B6CB42 #42B6CB
tetradic
#CB42B6 #CB9B42 #42CB57 #4272CB
square
#CB42B6 #CB9B42 #42CB57 #4272CB
split-complementary
#CB42B6 #72CB42 #42CB9B
monochromatic
#732066 #A32D91 #CB42B6 #D872C9 #E5A2DB

Accessibility & contrast

On white

4.21
#CB42B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#CB42B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B6#FFFFFF#000000##000000
##CB42B61.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#416FB9
Deuteranopia (green-blind)
#6F83B3
Tritanopia (blue-blind)
#D54C76
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb42b6;
/* rgb */ color: rgb(203, 66, 182);
/* oklch */ color: oklch(61.3% 0.213 334.6);
Tailwind
colors: {
  custom: {
    50: '#de81cc',
    500: '#cb42b6',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b6;
$custom-light: #de81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b6",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 309.197,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.6125,
    "c": 0.21293,
    "h": 334.6
  },
  "luminance": 0.1997
}

Semantic roles & 50–950 ramp

primary
#CB42B6
secondary
#97D2A0
accent
#E05F48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB42B6

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

Preview Lab → · Contrast checker → · Palette generator →

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