#CB42C7#CB42C7

#CB42C7 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.1% C 0.226 H 329.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#CB42C7
RGBrgb(203, 66, 199)
HSLhsl(302, 57%, 53%)
HSVhsv(302, 67%, 80%)
CMYKcmyk(0%, 67.5%, 2%, 20.4%)
CIE-LABlab(52.64, 68.84, -41.97)
CIE-LCHlch(52.64, 80.62, 328.63°)
OKLaboklab(62.12% 0.1936 -0.1159)
OKLCHoklch(62.12% 0.226 329.1)
XYZxyz(36.8853, 20.7191, 56.0782)
Luminance0.2072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42C7 #42CB46
analogous
#8B42CB #CB42C7 #CB4282
triadic
#CB42C7 #C7CB42 #42C7CB
tetradic
#CB42C7 #CB8B42 #42CB46 #4282CB
square
#CB42C7 #CB8B42 #42CB46 #4282CB
split-complementary
#CB42C7 #82CB42 #42CB8B
monochromatic
#732071 #A32DA0 #CB42C7 #D872D5 #E5A2E3

Accessibility & contrast

On white

4.08
#CB42C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#CB42C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42C7
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42C7#FFFFFF#000000##000000
##CB42C71.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3172CB
Deuteranopia (green-blind)
#6784C3
Tritanopia (blue-blind)
#D25480
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cb42c7;
/* rgb */ color: rgb(203, 66, 199);
/* oklch */ color: oklch(62.1% 0.226 329.1);
Tailwind
colors: {
  custom: {
    50: '#de82d8',
    500: '#cb42c7',
    950: '#000000',
  },
}
SCSS
$custom: #cb42c7;
$custom-light: #de82d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42c7",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 301.752,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62123,
    "c": 0.22564,
    "h": 329.1
  },
  "luminance": 0.20716
}

Semantic roles & 50–950 ramp

primary
#CB42C7
secondary
#97D298
accent
#E04C48
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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