#CB40C1#CB40C1

#CB40C1 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.223 H 331.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#CB40C1
RGBrgb(203, 64, 193)
HSLhsl(304, 57%, 52%)
HSVhsv(304, 68%, 80%)
CMYKcmyk(0%, 68.5%, 4.9%, 20.4%)
CIE-LABlab(52.08, 68.60, -39.39)
CIE-LCHlch(52.08, 79.11, 330.14°)
OKLaboklab(61.62% 0.1954 -0.1084)
OKLCHoklch(61.62% 0.223 331)
XYZxyz(36.0875, 20.2163, 52.4432)
Luminance0.2021 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C1 #40CB4A
analogous
#9040CB #CB40C1 #CB407B
triadic
#CB40C1 #C1CB40 #40C1CB
tetradic
#CB40C1 #CB9040 #40CB4A #407BCB
square
#CB40C1 #CB9040 #40CB4A #407BCB
split-complementary
#CB40C1 #7BCB40 #40CB90
monochromatic
#721F6C #A22C99 #CB40C1 #D870D1 #E5A0E0

Accessibility & contrast

On white

4.16
#CB40C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#CB40C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40C1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40C1#FFFFFF#000000##000000
##CB40C11.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3570C5
Deuteranopia (green-blind)
#6983BD
Tritanopia (blue-blind)
#D3507C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb40c1;
/* rgb */ color: rgb(203, 64, 193);
/* oklch */ color: oklch(61.6% 0.223 331.0);
Tailwind
colors: {
  custom: {
    50: '#de80d4',
    500: '#cb40c1',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c1;
$custom-light: #de80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c1",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 304.317,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61621,
    "c": 0.22345,
    "h": 331
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB40C1

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

Preview Lab → · Contrast checker → · Palette generator →

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