#CB42C2#CB42C2

#CB42C2 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.222 H 330.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CB42C2
RGBrgb(203, 66, 194)
HSLhsl(304, 57%, 53%)
HSVhsv(304, 67%, 80%)
CMYKcmyk(0%, 67.5%, 4.4%, 20.4%)
CIE-LABlab(52.39, 68.04, -39.49)
CIE-LCHlch(52.39, 78.67, 329.87°)
OKLaboklab(61.86% 0.1934 -0.1087)
OKLCHoklch(61.86% 0.222 330.7)
XYZxyz(36.3143, 20.4907, 53.0709)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42C2 #42CB4B
analogous
#9042CB #CB42C2 #CB427D
triadic
#CB42C2 #C2CB42 #42C2CB
tetradic
#CB42C2 #CB9042 #42CB4B #427DCB
square
#CB42C2 #CB9042 #42CB4B #427DCB
split-complementary
#CB42C2 #7DCB42 #42CB90
monochromatic
#73206D #A32D9B #CB42C2 #D872D1 #E5A2E1

Accessibility & contrast

On white

4.12
#CB42C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CB42C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42C2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42C2#FFFFFF#000000##000000
##CB42C21.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3771C6
Deuteranopia (green-blind)
#6A84BF
Tritanopia (blue-blind)
#D3527D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb42c2;
/* rgb */ color: rgb(203, 66, 194);
/* oklch */ color: oklch(61.9% 0.222 330.7);
Tailwind
colors: {
  custom: {
    50: '#de81d5',
    500: '#cb42c2',
    950: '#000000',
  },
}
SCSS
$custom: #cb42c2;
$custom-light: #de81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42c2",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 303.942,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61859,
    "c": 0.22181,
    "h": 330.7
  },
  "luminance": 0.20488
}

Semantic roles & 50–950 ramp

primary
#CB42C2
secondary
#97D29B
accent
#E05248
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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