#CB40C7#CB40C7

#CB40C7 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.9% C 0.228 H 329.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CB40C7
RGBrgb(203, 64, 199)
HSLhsl(302, 57%, 52%)
HSVhsv(302, 68%, 80%)
CMYKcmyk(0%, 68.5%, 2%, 20.4%)
CIE-LABlab(52.39, 69.56, -42.37)
CIE-LCHlch(52.39, 81.45, 328.65°)
OKLaboklab(61.94% 0.1957 -0.117)
OKLCHoklch(61.94% 0.228 329.1)
XYZxyz(36.7705, 20.4895, 56.0399)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C7 #40CB44
analogous
#8A40CB #CB40C7 #CB4081
triadic
#CB40C7 #C7CB40 #40C7CB
tetradic
#CB40C7 #CB8A40 #40CB44 #4081CB
square
#CB40C7 #CB8A40 #40CB44 #4081CB
split-complementary
#CB40C7 #81CB40 #40CB8A
monochromatic
#721F6F #A22C9E #CB40C7 #D870D5 #E5A0E3

Accessibility & contrast

On white

4.12
#CB40C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CB40C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40C7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40C7#FFFFFF#000000##000000
##CB40C71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F71CB
Deuteranopia (green-blind)
#6683C3
Tritanopia (blue-blind)
#D2527F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb40c7;
/* rgb */ color: rgb(203, 64, 199);
/* oklch */ color: oklch(61.9% 0.228 329.1);
Tailwind
colors: {
  custom: {
    50: '#df81d8',
    500: '#cb40c7',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c7;
$custom-light: #df81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c7",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 301.727,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.6194,
    "c": 0.22799,
    "h": 329.1
  },
  "luminance": 0.20487
}

Semantic roles & 50–950 ramp

primary
#CB40C7
secondary
#95D297
accent
#E04C47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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