#CB40BD#CB40BD

#CB40BD is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.220 H 332.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CB40BD
RGBrgb(203, 64, 189)
HSLhsl(306, 57%, 52%)
HSVhsv(306, 68%, 80%)
CMYKcmyk(0%, 68.5%, 6.9%, 20.4%)
CIE-LABlab(51.88, 67.98, -37.39)
CIE-LCHlch(51.88, 77.58, 331.19°)
OKLaboklab(61.41% 0.1951 -0.1026)
OKLCHoklch(61.41% 0.22 332.3)
XYZxyz(35.6474, 20.0403, 50.1249)
Luminance0.2004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40BD #40CB4E
analogous
#9340CB #CB40BD #CB4078
triadic
#CB40BD #BDCB40 #40BDCB
tetradic
#CB40BD #CB9340 #40CB4E #4078CB
square
#CB40BD #CB9340 #40CB4E #4078CB
split-complementary
#CB40BD #78CB40 #40CB93
monochromatic
#721F69 #A22C96 #CB40BD #D870CE #E5A0DE

Accessibility & contrast

On white

4.19
#CB40BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CB40BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40BD
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40BD#FFFFFF#000000##000000
##CB40BD1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#396FC1
Deuteranopia (green-blind)
#6B83BA
Tritanopia (blue-blind)
#D44E7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb40bd;
/* rgb */ color: rgb(203, 64, 189);
/* oklch */ color: oklch(61.4% 0.220 332.3);
Tailwind
colors: {
  custom: {
    50: '#de80d1',
    500: '#cb40bd',
    950: '#000000',
  },
}
SCSS
$custom: #cb40bd;
$custom-light: #de80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40bd",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 306.043,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61414,
    "c": 0.22046,
    "h": 332.3
  },
  "luminance": 0.20037
}

Semantic roles & 50–950 ramp

primary
#CB40BD
secondary
#95D29B
accent
#E05747
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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