#CB40C6#CB40C6

#CB40C6 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.227 H 329.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#CB40C6
RGBrgb(203, 64, 198)
HSLhsl(302, 57%, 52%)
HSVhsv(302, 68%, 80%)
CMYKcmyk(0%, 68.5%, 2.5%, 20.4%)
CIE-LABlab(52.33, 69.40, -41.88)
CIE-LCHlch(52.33, 81.05, 328.89°)
OKLaboklab(61.89% 0.1956 -0.1156)
OKLCHoklch(61.89% 0.227 329.4)
XYZxyz(36.6548, 20.4432, 55.4305)
Luminance0.2044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C6 #40CB45
analogous
#8A40CB #CB40C6 #CB4081
triadic
#CB40C6 #C6CB40 #40C6CB
tetradic
#CB40C6 #CB8A40 #40CB45 #4081CB
square
#CB40C6 #CB8A40 #40CB45 #4081CB
split-complementary
#CB40C6 #81CB40 #40CB8A
monochromatic
#721F6F #A22C9E #CB40C6 #D870D4 #E5A0E3

Accessibility & contrast

On white

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

On black

5.09
#CB40C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40C6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40C6#FFFFFF#000000##000000
##CB40C61.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3071CA
Deuteranopia (green-blind)
#6783C2
Tritanopia (blue-blind)
#D2527E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb40c6;
/* rgb */ color: rgb(203, 64, 198);
/* oklch */ color: oklch(61.9% 0.227 329.4);
Tailwind
colors: {
  custom: {
    50: '#df81d8',
    500: '#cb40c6',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c6;
$custom-light: #df81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c6",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 302.158,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61886,
    "c": 0.22722,
    "h": 329.4
  },
  "luminance": 0.20441
}

Semantic roles & 50–950 ramp

primary
#CB40C6
secondary
#95D297
accent
#E04D47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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