#CB40CE#CB40CE

#CB40CE is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.3% C 0.233 H 327.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#CB40CE
RGBrgb(203, 64, 206)
HSLhsl(299, 59%, 53%)
HSVhsv(299, 69%, 81%)
CMYKcmyk(1.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(52.75, 70.70, -45.81)
CIE-LCHlch(52.75, 84.24, 327.06°)
OKLaboklab(62.32% 0.1958 -0.127)
OKLCHoklch(62.32% 0.233 327)
XYZxyz(37.6020, 20.8221, 60.4191)
Luminance0.2082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40CE #43CE40
analogous
#8440CE #CB40CE #CE408A
triadic
#CB40CE #CECB40 #40CECB
tetradic
#CB40CE #CE8440 #43CE40 #408ACE
square
#CB40CE #CE8440 #43CE40 #408ACE
split-complementary
#CB40CE #8ACE40 #40CE84
monochromatic
#741E75 #A42BA6 #CB40CE #D871DA #E6A1E7

Accessibility & contrast

On white

4.07
#CB40CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#CB40CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40CE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40CE#FFFFFF#000000##000000
##CB40CE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2573D2
Deuteranopia (green-blind)
#6284CA
Tritanopia (blue-blind)
#D15683
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cb40ce;
/* rgb */ color: rgb(203, 64, 206);
/* oklch */ color: oklch(62.3% 0.233 327.0);
Tailwind
colors: {
  custom: {
    50: '#df81dd',
    500: '#cb40ce',
    950: '#000000',
  },
}
SCSS
$custom: #cb40ce;
$custom-light: #df81dd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40ce",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 298.732,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62324,
    "c": 0.23339,
    "h": 327
  },
  "luminance": 0.2082
}

Semantic roles & 50–950 ramp

primary
#CB40CE
secondary
#98D496
accent
#E24549
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CB40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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