#CB42C0#CB42C0

#CB42C0 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.8% C 0.220 H 331.3°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CB42C0
RGBrgb(203, 66, 192)
HSLhsl(305, 57%, 53%)
HSVhsv(305, 67%, 80%)
CMYKcmyk(0%, 67.5%, 5.4%, 20.4%)
CIE-LABlab(52.29, 67.72, -38.49)
CIE-LCHlch(52.29, 77.90, 330.39°)
OKLaboklab(61.76% 0.1932 -0.1058)
OKLCHoklch(61.76% 0.22 331.3)
XYZxyz(36.0912, 20.4015, 51.8960)
Luminance0.2040 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42C0 #42CB4D
analogous
#9242CB #CB42C0 #CB427B
triadic
#CB42C0 #C0CB42 #42C0CB
tetradic
#CB42C0 #CB9242 #42CB4D #427BCB
square
#CB42C0 #CB9242 #42CB4D #427BCB
split-complementary
#CB42C0 #7BCB42 #42CB92
monochromatic
#73206C #A32D99 #CB42C0 #D872D0 #E5A2E0

Accessibility & contrast

On white

4.13
#CB42C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CB42C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42C0
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42C0#FFFFFF#000000##000000
##CB42C01.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3970C4
Deuteranopia (green-blind)
#6B84BD
Tritanopia (blue-blind)
#D3517C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb42c0;
/* rgb */ color: rgb(203, 66, 192);
/* oklch */ color: oklch(61.8% 0.220 331.3);
Tailwind
colors: {
  custom: {
    50: '#de81d3',
    500: '#cb42c0',
    950: '#000000',
  },
}
SCSS
$custom: #cb42c0;
$custom-light: #de81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42c0",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 304.818,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61755,
    "c": 0.22031,
    "h": 331.3
  },
  "luminance": 0.20399
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB42C0

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

Preview Lab → · Contrast checker → · Palette generator →

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