#CB40B8#CB40B8

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

Color values

HEX#CB40B8
RGBrgb(203, 64, 184)
HSLhsl(308, 57%, 52%)
HSVhsv(308, 68%, 80%)
CMYKcmyk(0%, 68.5%, 9.4%, 20.4%)
CIE-LABlab(51.64, 67.22, -34.87)
CIE-LCHlch(51.64, 75.72, 332.58°)
OKLaboklab(61.16% 0.1947 -0.0954)
OKLCHoklch(61.16% 0.217 333.9)
XYZxyz(35.1140, 19.8269, 47.3157)
Luminance0.1982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40B8 #40CB53
analogous
#9840CB #CB40B8 #CB4073
triadic
#CB40B8 #B8CB40 #40B8CB
tetradic
#CB40B8 #CB9840 #40CB53 #4073CB
square
#CB40B8 #CB9840 #40CB53 #4073CB
split-complementary
#CB40B8 #73CB40 #40CB98
monochromatic
#721F66 #A22C92 #CB40B8 #D870CA #E5A0DC

Accessibility & contrast

On white

4.23
#CB40B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CB40B8#FFFFFF#000000##000000
##CB40B81.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6EBB
Deuteranopia (green-blind)
#6D82B5
Tritanopia (blue-blind)
#D44C77
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cb40b8;
/* rgb */ color: rgb(203, 64, 184);
/* oklch */ color: oklch(61.2% 0.217 333.9);
Tailwind
colors: {
  custom: {
    50: '#de80cd',
    500: '#cb40b8',
    950: '#000000',
  },
}
SCSS
$custom: #cb40b8;
$custom-light: #de80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40b8",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 308.201,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.6116,
    "c": 0.21681,
    "h": 333.9
  },
  "luminance": 0.19824
}

Semantic roles & 50–950 ramp

primary
#CB40B8
secondary
#95D29D
accent
#E05C47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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