#CB45B7#CB45B7

#CB45B7 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.6% C 0.210 H 334.3°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#CB45B7
RGBrgb(203, 69, 183)
HSLhsl(309, 56%, 53%)
HSVhsv(309, 66%, 80%)
CMYKcmyk(0%, 66%, 9.9%, 20.4%)
CIE-LABlab(52.26, 65.20, -33.32)
CIE-LCHlch(52.26, 73.22, 332.93°)
OKLaboklab(61.59% 0.1891 -0.091)
OKLCHoklch(61.59% 0.21 334.3)
XYZxyz(35.3042, 20.3745, 46.8638)
Luminance0.2037 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB45B7 #45CB59
analogous
#9C45CB #CB45B7 #CB4574
triadic
#CB45B7 #B7CB45 #45B7CB
tetradic
#CB45B7 #CB9C45 #45CB59 #4574CB
square
#CB45B7 #CB9C45 #45CB59 #4574CB
split-complementary
#CB45B7 #74CB45 #45CB9C
monochromatic
#752168 #A52E93 #CB45B7 #D875CA #E6A5DC

Accessibility & contrast

On white

4.14
#CB45B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#CB45B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB45B7
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB45B7#FFFFFF#000000##000000
##CB45B71.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4370BA
Deuteranopia (green-blind)
#7084B4
Tritanopia (blue-blind)
#D44F78
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cb45b7;
/* rgb */ color: rgb(203, 69, 183);
/* oklch */ color: oklch(61.6% 0.210 334.3);
Tailwind
colors: {
  custom: {
    50: '#de83cd',
    500: '#cb45b7',
    950: '#000000',
  },
}
SCSS
$custom: #cb45b7;
$custom-light: #de83cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb45b7",
  "rgb": {
    "r": 203,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 308.955,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.61592,
    "c": 0.20988,
    "h": 334.3
  },
  "luminance": 0.20372
}

Semantic roles & 50–950 ramp

primary
#CB45B7
secondary
#99D3A2
accent
#E05F48
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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