#CB42C8#CB42C8

#CB42C8 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.2% C 0.226 H 328.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#CB42C8
RGBrgb(203, 66, 200)
HSLhsl(301, 57%, 53%)
HSVhsv(301, 67%, 80%)
CMYKcmyk(0%, 67.5%, 1.5%, 20.4%)
CIE-LABlab(52.69, 69.00, -42.46)
CIE-LCHlch(52.69, 81.02, 328.39°)
OKLaboklab(62.18% 0.1937 -0.1173)
OKLCHoklch(62.18% 0.226 328.8)
XYZxyz(37.0018, 20.7657, 56.6917)
Luminance0.2076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42C8 #42CB45
analogous
#8A42CB #CB42C8 #CB4283
triadic
#CB42C8 #C8CB42 #42C8CB
tetradic
#CB42C8 #CB8A42 #42CB45 #4283CB
square
#CB42C8 #CB8A42 #42CB45 #4283CB
split-complementary
#CB42C8 #83CB42 #42CB8A
monochromatic
#732071 #A32DA0 #CB42C8 #D872D6 #E5A2E4

Accessibility & contrast

On white

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

On black

5.15
#CB42C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42C8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42C8#FFFFFF#000000##000000
##CB42C81.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3072CC
Deuteranopia (green-blind)
#6784C4
Tritanopia (blue-blind)
#D25480
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cb42c8;
/* rgb */ color: rgb(203, 66, 200);
/* oklch */ color: oklch(62.2% 0.226 328.8);
Tailwind
colors: {
  custom: {
    50: '#de82d9',
    500: '#cb42c8',
    950: '#000000',
  },
}
SCSS
$custom: #cb42c8;
$custom-light: #de82d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42c8",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 301.314,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.62177,
    "c": 0.22641,
    "h": 328.8
  },
  "luminance": 0.20763
}

Semantic roles & 50–950 ramp

primary
#CB42C8
secondary
#97D298
accent
#E04B48
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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