#CB42C4#CB42C4

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

Color values

HEX#CB42C4
RGBrgb(203, 66, 196)
HSLhsl(303, 57%, 53%)
HSVhsv(303, 67%, 80%)
CMYKcmyk(0%, 67.5%, 3.4%, 20.4%)
CIE-LABlab(52.49, 68.36, -40.48)
CIE-LCHlch(52.49, 79.45, 329.37°)
OKLaboklab(61.96% 0.1935 -0.1116)
OKLCHoklch(61.96% 0.223 330)
XYZxyz(36.5404, 20.5812, 54.2619)
Luminance0.2058 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42C4 #42CB49
analogous
#8E42CB #CB42C4 #CB427F
triadic
#CB42C4 #C4CB42 #42C4CB
tetradic
#CB42C4 #CB8E42 #42CB49 #427FCB
square
#CB42C4 #CB8E42 #42CB49 #427FCB
split-complementary
#CB42C4 #7FCB42 #42CB8E
monochromatic
#73206F #A32D9D #CB42C4 #D872D3 #E5A2E2

Accessibility & contrast

On white

4.11
#CB42C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB42C4#FFFFFF#000000##000000
##CB42C41.004.115.125.12
#FFFFFF4.111.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3571C8
Deuteranopia (green-blind)
#6984C0
Tritanopia (blue-blind)
#D2527E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb42c4;
/* rgb */ color: rgb(203, 66, 196);
/* oklch */ color: oklch(62.0% 0.223 330.0);
Tailwind
colors: {
  custom: {
    50: '#de81d6',
    500: '#cb42c4',
    950: '#000000',
  },
}
SCSS
$custom: #cb42c4;
$custom-light: #de81d6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42c4",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 303.066,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61964,
    "c": 0.22334,
    "h": 330
  },
  "luminance": 0.20578
}

Semantic roles & 50–950 ramp

primary
#CB42C4
secondary
#97D29A
accent
#E04F48
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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