#CB42B7#CB42B7

#CB42B7 is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.3% C 0.214 H 334.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CB42B7
RGBrgb(203, 66, 183)
HSLhsl(309, 57%, 53%)
HSVhsv(309, 67%, 80%)
CMYKcmyk(0%, 67.5%, 9.9%, 20.4%)
CIE-LABlab(51.85, 66.33, -33.95)
CIE-LCHlch(51.85, 74.52, 332.90°)
OKLaboklab(61.3% 0.1925 -0.0928)
OKLCHoklch(61.3% 0.214 334.3)
XYZxyz(35.1243, 20.0147, 46.8039)
Luminance0.2001 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42B7 #42CB56
analogous
#9A42CB #CB42B7 #CB4273
triadic
#CB42B7 #B7CB42 #42B7CB
tetradic
#CB42B7 #CB9A42 #42CB56 #4273CB
square
#CB42B7 #CB9A42 #42CB56 #4273CB
split-complementary
#CB42B7 #73CB42 #42CB9A
monochromatic
#732067 #A32D92 #CB42B7 #D872C9 #E5A2DC

Accessibility & contrast

On white

4.20
#CB42B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CB42B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42B7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42B7#FFFFFF#000000##000000
##CB42B71.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#6F83B4
Tritanopia (blue-blind)
#D44D77
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb42b7;
/* rgb */ color: rgb(203, 66, 183);
/* oklch */ color: oklch(61.3% 0.214 334.3);
Tailwind
colors: {
  custom: {
    50: '#de81cd',
    500: '#cb42b7',
    950: '#000000',
  },
}
SCSS
$custom: #cb42b7;
$custom-light: #de81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42b7",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 308.759,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61299,
    "c": 0.21365,
    "h": 334.3
  },
  "luminance": 0.20012
}

Semantic roles & 50–950 ramp

primary
#CB42B7
secondary
#97D29F
accent
#E05E48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB42B7

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

Preview Lab → · Contrast checker → · Palette generator →

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