#CB40C3#CB40C3

#CB40C3 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.7% C 0.225 H 330.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#CB40C3
RGBrgb(203, 64, 195)
HSLhsl(303, 57%, 52%)
HSVhsv(303, 68%, 80%)
CMYKcmyk(0%, 68.5%, 3.9%, 20.4%)
CIE-LABlab(52.18, 68.92, -40.39)
CIE-LCHlch(52.18, 79.88, 329.63°)
OKLaboklab(61.73% 0.1955 -0.1113)
OKLCHoklch(61.73% 0.225 330.4)
XYZxyz(36.3122, 20.3062, 53.6261)
Luminance0.2030 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C3 #40CB48
analogous
#8D40CB #CB40C3 #CB407E
triadic
#CB40C3 #C3CB40 #40C3CB
tetradic
#CB40C3 #CB8D40 #40CB48 #407ECB
square
#CB40C3 #CB8D40 #40CB48 #407ECB
split-complementary
#CB40C3 #7ECB40 #40CB8D
monochromatic
#721F6D #A22C9B #CB40C3 #D870D2 #E5A0E1

Accessibility & contrast

On white

4.15
#CB40C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#CB40C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40C3
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40C3#FFFFFF#000000##000000
##CB40C31.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3370C7
Deuteranopia (green-blind)
#6883BF
Tritanopia (blue-blind)
#D3517D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb40c3;
/* rgb */ color: rgb(203, 64, 195);
/* oklch */ color: oklch(61.7% 0.225 330.4);
Tailwind
colors: {
  custom: {
    50: '#de81d5',
    500: '#cb40c3',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c3;
$custom-light: #de81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c3",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 303.453,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61726,
    "c": 0.22495,
    "h": 330.4
  },
  "luminance": 0.20303
}

Semantic roles & 50–950 ramp

primary
#CB40C3
secondary
#95D299
accent
#E05047
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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