#CB40D5#CB40D5

#CB40D5 is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.239 H 325.0°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CB40D5
RGBrgb(203, 64, 213)
HSLhsl(296, 64%, 54%)
HSVhsv(296, 70%, 84%)
CMYKcmyk(4.7%, 70%, 0%, 16.5%)
CIE-LABlab(53.13, 71.86, -49.20)
CIE-LCHlch(53.13, 87.09, 325.60°)
OKLaboklab(62.72% 0.1958 -0.1368)
OKLCHoklch(62.72% 0.239 325)
XYZxyz(38.4713, 21.1698, 64.9977)
Luminance0.2117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40D5 #4AD540
analogous
#8140D5 #CB40D5 #D54095
triadic
#CB40D5 #D5CB40 #40D5CB
tetradic
#CB40D5 #D58140 #4AD540 #4095D5
square
#CB40D5 #D58140 #4AD540 #4095D5
split-complementary
#CB40D5 #95D540 #40D581
monochromatic
#781C7F #A827B1 #CB40D5 #D972E0 #E6A4EB

Accessibility & contrast

On white

4.01
#CB40D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#CB40D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40D5
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40D5#FFFFFF#000000##000000
##CB40D51.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1774D9
Deuteranopia (green-blind)
#5E85D1
Tritanopia (blue-blind)
#CF5987
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cb40d5;
/* rgb */ color: rgb(203, 64, 213);
/* oklch */ color: oklch(62.7% 0.239 325.0);
Tailwind
colors: {
  custom: {
    50: '#df81e2',
    500: '#cb40d5',
    950: '#000000',
  },
}
SCSS
$custom: #cb40d5;
$custom-light: #df81e2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40d5",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 295.973,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.62719,
    "c": 0.23888,
    "h": 325
  },
  "luminance": 0.21167
}

Semantic roles & 50–950 ramp

primary
#CB40D5
secondary
#9DD899
accent
#E7414C
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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