#CB42C5#CB42C5

#CB42C5 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.0% C 0.224 H 329.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#CB42C5
RGBrgb(203, 66, 197)
HSLhsl(303, 57%, 53%)
HSVhsv(303, 67%, 80%)
CMYKcmyk(0%, 67.5%, 3%, 20.4%)
CIE-LABlab(52.54, 68.52, -40.98)
CIE-LCHlch(52.54, 79.84, 329.12°)
OKLaboklab(62.02% 0.1935 -0.113)
OKLCHoklch(62.02% 0.224 329.7)
XYZxyz(36.6546, 20.6269, 54.8633)
Luminance0.2062 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42C5 #42CB48
analogous
#8D42CB #CB42C5 #CB4280
triadic
#CB42C5 #C5CB42 #42C5CB
tetradic
#CB42C5 #CB8D42 #42CB48 #4280CB
square
#CB42C5 #CB8D42 #42CB48 #4280CB
split-complementary
#CB42C5 #80CB42 #42CB8D
monochromatic
#73206F #A32D9E #CB42C5 #D872D4 #E5A2E2

Accessibility & contrast

On white

4.10
#CB42C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#CB42C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42C5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42C5#FFFFFF#000000##000000
##CB42C51.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3471C9
Deuteranopia (green-blind)
#6884C1
Tritanopia (blue-blind)
#D2537E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb42c5;
/* rgb */ color: rgb(203, 66, 197);
/* oklch */ color: oklch(62.0% 0.224 329.7);
Tailwind
colors: {
  custom: {
    50: '#de82d7',
    500: '#cb42c5',
    950: '#000000',
  },
}
SCSS
$custom: #cb42c5;
$custom-light: #de82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42c5",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 302.628,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62017,
    "c": 0.2241,
    "h": 329.7
  },
  "luminance": 0.20624
}

Semantic roles & 50–950 ramp

primary
#CB42C5
secondary
#97D299
accent
#E04E48
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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