#CB40B4#CB40B4

#CB40B4 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.0% C 0.214 H 335.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CB40B4
RGBrgb(203, 64, 180)
HSLhsl(310, 57%, 52%)
HSVhsv(310, 68%, 80%)
CMYKcmyk(0%, 68.5%, 11.3%, 20.4%)
CIE-LABlab(51.45, 66.61, -32.83)
CIE-LCHlch(51.45, 74.27, 333.76°)
OKLaboklab(60.96% 0.1943 -0.0895)
OKLCHoklch(60.96% 0.214 335.3)
XYZxyz(34.7006, 19.6616, 45.1386)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B4 #40CB57
analogous
#9D40CB #CB40B4 #CB406F
triadic
#CB40B4 #B4CB40 #40B4CB
tetradic
#CB40B4 #CB9D40 #40CB57 #406FCB
square
#CB40B4 #CB9D40 #40CB57 #406FCB
split-complementary
#CB40B4 #6FCB40 #40CB9D
monochromatic
#721F64 #A22C8E #CB40B4 #D870C7 #E5A0DA

Accessibility & contrast

On white

4.26
#CB40B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CB40B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40B4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40B4#FFFFFF#000000##000000
##CB40B41.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#406DB7
Deuteranopia (green-blind)
#6F82B1
Tritanopia (blue-blind)
#D54A75
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb40b4;
/* rgb */ color: rgb(203, 64, 180);
/* oklch */ color: oklch(61.0% 0.214 335.3);
Tailwind
colors: {
  custom: {
    50: '#de80cb',
    500: '#cb40b4',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b4;
$custom-light: #de80cb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b4",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 309.928,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60962,
    "c": 0.21394,
    "h": 335.3
  },
  "luminance": 0.19659
}

Semantic roles & 50–950 ramp

primary
#CB40B4
secondary
#95D29F
accent
#E06147
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B4

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

Preview Lab → · Contrast checker → · Palette generator →

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