#CB42D5#CB42D5

#CB42D5 is a light, highly saturated purple. Relative luminance 0.214; OKLCH L 62.9% C 0.237 H 325.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#CB42D5
RGBrgb(203, 66, 213)
HSLhsl(296, 64%, 55%)
HSVhsv(296, 69%, 84%)
CMYKcmyk(4.7%, 69%, 0%, 16.5%)
CIE-LABlab(53.38, 71.16, -48.81)
CIE-LCHlch(53.38, 86.29, 325.55°)
OKLaboklab(62.9% 0.1938 -0.1357)
OKLCHoklch(62.9% 0.237 325)
XYZxyz(38.5861, 21.3995, 65.0360)
Luminance0.2140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42D5 #4CD542
analogous
#8142D5 #CB42D5 #D54296
triadic
#CB42D5 #D5CB42 #42D5CB
tetradic
#CB42D5 #D58142 #4CD542 #4296D5
square
#CB42D5 #D58142 #4CD542 #4296D5
split-complementary
#CB42D5 #96D542 #42D581
monochromatic
#791C80 #A928B2 #CB42D5 #D974E0 #E7A6EB

Accessibility & contrast

On white

3.98
#CB42D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#CB42D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42D5
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42D5#FFFFFF#000000##000000
##CB42D51.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D75D9
Deuteranopia (green-blind)
#5F85D1
Tritanopia (blue-blind)
#CF5A87
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb42d5;
/* rgb */ color: rgb(203, 66, 213);
/* oklch */ color: oklch(62.9% 0.237 325.0);
Tailwind
colors: {
  custom: {
    50: '#df82e2',
    500: '#cb42d5',
    950: '#000000',
  },
}
SCSS
$custom: #cb42d5;
$custom-light: #df82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42d5",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 295.918,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.62898,
    "c": 0.23662,
    "h": 325
  },
  "luminance": 0.21397
}

Semantic roles & 50–950 ramp

primary
#CB42D5
secondary
#9FD89A
accent
#E7414C
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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