#C628B7#C628B7

#C628B7 is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.5% C 0.238 H 332.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C628B7
RGBrgb(198, 40, 183)
HSLhsl(306, 66%, 47%)
HSVhsv(306, 80%, 78%)
CMYKcmyk(0%, 79.8%, 7.6%, 22.4%)
CIE-LABlab(48.19, 73.29, -39.77)
CIE-LCHlch(48.19, 83.39, 331.51°)
OKLaboklab(58.51% 0.2112 -0.1094)
OKLCHoklch(58.51% 0.238 332.6)
XYZxyz(32.5949, 16.9451, 46.3446)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C628B7 #28C637
analogous
#8628C6 #C628B7 #C62868
triadic
#C628B7 #B7C628 #28B7C6
tetradic
#C628B7 #C68628 #28C637 #2868C6
square
#C628B7 #C68628 #28C637 #2868C6
split-complementary
#C628B7 #68C628 #28C686
monochromatic
#601359 #931E88 #C628B7 #DC50CE #E683DC

Accessibility & contrast

On white

4.79
#C628B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#C628B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C628B7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C628B7#FFFFFF#000000##FFFFFF
##C628B71.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BB
Deuteranopia (green-blind)
#607AB3
Tritanopia (blue-blind)
#CF3C70
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c628b7;
/* rgb */ color: rgb(198, 40, 183);
/* oklch */ color: oklch(58.5% 0.238 332.6);
Tailwind
colors: {
  custom: {
    50: '#dc76cd',
    500: '#c628b7',
    950: '#000000',
  },
}
SCSS
$custom: #c628b7;
$custom-light: #dc76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c628b7",
  "rgb": {
    "r": 198,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 305.696,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.58507,
    "c": 0.23786,
    "h": 332.6
  },
  "luminance": 0.16942
}

Semantic roles & 50–950 ramp

primary
#C628B7
secondary
#7BCF83
accent
#E94F3E
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160A13
muted
#847C82

Preview Lab

Preview with #C628B7

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

Preview Lab → · Contrast checker → · Palette generator →

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