#CB40B7#CB40B7

#CB40B7 is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.1% C 0.216 H 334.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CB40B7
RGBrgb(203, 64, 183)
HSLhsl(309, 57%, 52%)
HSVhsv(309, 68%, 80%)
CMYKcmyk(0%, 68.5%, 9.9%, 20.4%)
CIE-LABlab(51.59, 67.06, -34.36)
CIE-LCHlch(51.59, 75.35, 332.87°)
OKLaboklab(61.11% 0.1946 -0.0939)
OKLCHoklch(61.11% 0.216 334.2)
XYZxyz(35.0095, 19.7851, 46.7656)
Luminance0.1978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B7 #40CB54
analogous
#9A40CB #CB40B7 #CB4072
triadic
#CB40B7 #B7CB40 #40B7CB
tetradic
#CB40B7 #CB9A40 #40CB54 #4072CB
square
#CB40B7 #CB9A40 #40CB54 #4072CB
split-complementary
#CB40B7 #72CB40 #40CB9A
monochromatic
#721F66 #A22C91 #CB40B7 #D870C9 #E5A0DB

Accessibility & contrast

On white

4.24
#CB40B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#CB40B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B7#FFFFFF#000000##000000
##CB40B71.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E6EBA
Deuteranopia (green-blind)
#6E82B4
Tritanopia (blue-blind)
#D44B76
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb40b7;
/* rgb */ color: rgb(203, 64, 183);
/* oklch */ color: oklch(61.1% 0.216 334.2);
Tailwind
colors: {
  custom: {
    50: '#de80cd',
    500: '#cb40b7',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b7;
$custom-light: #de80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b7",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 308.633,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.6111,
    "c": 0.21608,
    "h": 334.2
  },
  "luminance": 0.19782
}

Semantic roles & 50–950 ramp

primary
#CB40B7
secondary
#95D29E
accent
#E05D47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B7

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

Preview Lab → · Contrast checker → · Palette generator →

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