#CB42BA#CB42BA

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

Color values

HEX#CB42BA
RGBrgb(203, 66, 186)
HSLhsl(307, 57%, 53%)
HSVhsv(307, 67%, 80%)
CMYKcmyk(0%, 67.5%, 8.4%, 20.4%)
CIE-LABlab(52.00, 66.79, -35.47)
CIE-LCHlch(52.00, 75.62, 332.03°)
OKLaboklab(61.45% 0.1928 -0.0971)
OKLCHoklch(61.45% 0.216 333.3)
XYZxyz(35.4399, 20.1410, 48.4659)
Luminance0.2014 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42BA #42CB53
analogous
#9742CB #CB42BA #CB4276
triadic
#CB42BA #BACB42 #42BACB
tetradic
#CB42BA #CB9742 #42CB53 #4276CB
square
#CB42BA #CB9742 #42CB53 #4276CB
split-complementary
#CB42BA #76CB42 #42CB97
monochromatic
#732069 #A32D94 #CB42BA #D872CC #E5A2DD

Accessibility & contrast

On white

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

On black

5.03
#CB42BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42BA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42BA#FFFFFF#000000##000000
##CB42BA1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6FBD
Deuteranopia (green-blind)
#6D83B7
Tritanopia (blue-blind)
#D44E79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42ba;
/* rgb */ color: rgb(203, 66, 186);
/* oklch */ color: oklch(61.4% 0.216 333.3);
Tailwind
colors: {
  custom: {
    50: '#de81cf',
    500: '#cb42ba',
    950: '#000000',
  },
}
SCSS
$custom: #cb42ba;
$custom-light: #de81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42ba",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 307.445,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61449,
    "c": 0.21584,
    "h": 333.3
  },
  "luminance": 0.20138
}

Semantic roles & 50–950 ramp

primary
#CB42BA
secondary
#97D29E
accent
#E05B48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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