#CB40C5#CB40C5

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

Color values

HEX#CB40C5
RGBrgb(203, 64, 197)
HSLhsl(303, 57%, 52%)
HSVhsv(303, 68%, 80%)
CMYKcmyk(0%, 68.5%, 3%, 20.4%)
CIE-LABlab(52.28, 69.24, -41.38)
CIE-LCHlch(52.28, 80.66, 329.13°)
OKLaboklab(61.83% 0.1956 -0.1141)
OKLCHoklch(61.83% 0.226 329.7)
XYZxyz(36.5398, 20.3972, 54.8250)
Luminance0.2039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C5 #40CB46
analogous
#8C40CB #CB40C5 #CB407F
triadic
#CB40C5 #C5CB40 #40C5CB
tetradic
#CB40C5 #CB8C40 #40CB46 #407FCB
square
#CB40C5 #CB8C40 #40CB46 #407FCB
split-complementary
#CB40C5 #7FCB40 #40CB8C
monochromatic
#721F6E #A22C9D #CB40C5 #D870D4 #E5A0E2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB40C5#FFFFFF#000000##000000
##CB40C51.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)
#3171C9
Deuteranopia (green-blind)
#6783C1
Tritanopia (blue-blind)
#D2517E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb40c5;
/* rgb */ color: rgb(203, 64, 197);
/* oklch */ color: oklch(61.8% 0.226 329.7);
Tailwind
colors: {
  custom: {
    50: '#df81d7',
    500: '#cb40c5',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c5;
$custom-light: #df81d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c5",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 302.59,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61833,
    "c": 0.22646,
    "h": 329.7
  },
  "luminance": 0.20395
}

Semantic roles & 50–950 ramp

primary
#CB40C5
secondary
#95D298
accent
#E04E47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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