#CB40C0#CB40C0

#CB40C0 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.6% C 0.223 H 331.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CB40C0
RGBrgb(203, 64, 192)
HSLhsl(305, 57%, 52%)
HSVhsv(305, 68%, 80%)
CMYKcmyk(0%, 68.5%, 5.4%, 20.4%)
CIE-LABlab(52.03, 68.45, -38.89)
CIE-LCHlch(52.03, 78.73, 330.39°)
OKLaboklab(61.57% 0.1953 -0.107)
OKLCHoklch(61.57% 0.223 331.3)
XYZxyz(35.9764, 20.1719, 51.8577)
Luminance0.2017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB40C0 #40CB4B
analogous
#9040CB #CB40C0 #CB407B
triadic
#CB40C0 #C0CB40 #40C0CB
tetradic
#CB40C0 #CB9040 #40CB4B #407BCB
square
#CB40C0 #CB9040 #40CB4B #407BCB
split-complementary
#CB40C0 #7BCB40 #40CB90
monochromatic
#721F6B #A22C98 #CB40C0 #D870D0 #E5A0E0

Accessibility & contrast

On white

4.17
#CB40C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CB40C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB40C0
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB40C0#FFFFFF#000000##000000
##CB40C01.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3670C4
Deuteranopia (green-blind)
#6A83BC
Tritanopia (blue-blind)
#D34F7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cb40c0;
/* rgb */ color: rgb(203, 64, 192);
/* oklch */ color: oklch(61.6% 0.223 331.3);
Tailwind
colors: {
  custom: {
    50: '#de80d3',
    500: '#cb40c0',
    950: '#000000',
  },
}
SCSS
$custom: #cb40c0;
$custom-light: #de80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cb40c0",
  "rgb": {
    "r": 203,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 304.748,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61569,
    "c": 0.2227,
    "h": 331.3
  },
  "luminance": 0.20169
}

Semantic roles & 50–950 ramp

primary
#CB40C0
secondary
#95D29A
accent
#E05347
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CB40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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