#CB42D1#CB42D1

#CB42D1 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.233 H 326.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#CB42D1
RGBrgb(203, 66, 209)
HSLhsl(297, 61%, 54%)
HSVhsv(297, 68%, 82%)
CMYKcmyk(2.9%, 68.4%, 0%, 18%)
CIE-LABlab(53.17, 70.48, -46.87)
CIE-LCHlch(53.17, 84.64, 326.38°)
OKLaboklab(62.67% 0.1939 -0.1301)
OKLCHoklch(62.67% 0.233 326.1)
XYZxyz(38.0847, 21.1989, 62.3951)
Luminance0.2120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42D1 #48D142
analogous
#8442D1 #CB42D1 #D1428F
triadic
#CB42D1 #D1CB42 #42D1CB
tetradic
#CB42D1 #D18442 #48D142 #428FD1
square
#CB42D1 #D18442 #48D142 #428FD1
split-complementary
#CB42D1 #8FD142 #42D184
monochromatic
#771E7B #A62AAC #CB42D1 #D973DD #E6A4E9

Accessibility & contrast

On white

4.01
#CB42D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#CB42D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42D1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42D1#FFFFFF#000000##000000
##CB42D11.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2474D5
Deuteranopia (green-blind)
#6285CD
Tritanopia (blue-blind)
#D05885
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb42d1;
/* rgb */ color: rgb(203, 66, 209);
/* oklch */ color: oklch(62.7% 0.233 326.1);
Tailwind
colors: {
  custom: {
    50: '#df82e0',
    500: '#cb42d1',
    950: '#000000',
  },
}
SCSS
$custom: #cb42d1;
$custom-light: #df82e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42d1",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 297.483,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62672,
    "c": 0.23345,
    "h": 326.1
  },
  "luminance": 0.21196
}

Semantic roles & 50–950 ramp

primary
#CB42D1
secondary
#9BD699
accent
#E4444B
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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