#CB5198#CB5198

#CB5198 is a mid, vivid pink. Relative luminance 0.208; OKLCH L 61.6% C 0.173 H 347.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#CB5198
RGBrgb(203, 81, 152)
HSLhsl(325, 54%, 56%)
HSVhsv(325, 60%, 80%)
CMYKcmyk(0%, 60.1%, 25.1%, 20.4%)
CIE-LABlab(52.79, 55.78, -14.34)
CIE-LCHlch(52.79, 57.59, 345.58°)
OKLaboklab(61.56% 0.1684 -0.0377)
OKLCHoklch(61.56% 0.173 347.4)
XYZxyz(33.2397, 20.8515, 31.9738)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB5198 #51CB84
analogous
#C151CB #CB5198 #CB515B
triadic
#CB5198 #98CB51 #5198CB
tetradic
#CB5198 #CBC151 #51CB84 #515BCB
square
#CB5198 #CBC151 #51CB84 #515BCB
split-complementary
#CB5198 #5BCB51 #51CBC1
monochromatic
#7C2558 #AC3379 #CB5198 #D980B4 #E7AFD0

Accessibility & contrast

On white

4.06
#CB5198 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#CB5198 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB5198
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB5198#FFFFFF#000000##000000
##CB51981.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F719A
Deuteranopia (green-blind)
#818695
Tritanopia (blue-blind)
#D84E6E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cb5198;
/* rgb */ color: rgb(203, 81, 152);
/* oklch */ color: oklch(61.6% 0.173 347.4);
Tailwind
colors: {
  custom: {
    50: '#de88b6',
    500: '#cb5198',
    950: '#000000',
  },
}
SCSS
$custom: #cb5198;
$custom-light: #de88b6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb5198",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 152
  },
  "hsl": {
    "h": 325.082,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61562,
    "c": 0.17254,
    "h": 347.4
  },
  "luminance": 0.20848
}

Semantic roles & 50–950 ramp

primary
#CB5198
secondary
#A3D5B8
accent
#DD884A
background
#FEF8FB
surface
#FCF0F6
border
#D5CBD0
text
#160C11
muted
#847D80

Preview Lab

Preview with #CB5198

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

Preview Lab → · Contrast checker → · Palette generator →

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