#C628BA#C628BA

#C628BA is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.7% C 0.240 H 331.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#C628BA
RGBrgb(198, 40, 186)
HSLhsl(305, 66%, 47%)
HSVhsv(305, 80%, 78%)
CMYKcmyk(0%, 79.8%, 6.1%, 22.4%)
CIE-LABlab(48.35, 73.73, -41.27)
CIE-LCHlch(48.35, 84.50, 330.76°)
OKLaboklab(58.67% 0.2112 -0.1138)
OKLCHoklch(58.67% 0.24 331.7)
XYZxyz(32.9105, 17.0713, 48.0066)
Luminance0.1707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C628BA #28C634
analogous
#8328C6 #C628BA #C6286B
triadic
#C628BA #BAC628 #28BAC6
tetradic
#C628BA #C68328 #28C634 #286BC6
square
#C628BA #C68328 #28C634 #286BC6
split-complementary
#C628BA #6BC628 #28C683
monochromatic
#60135A #931E8A #C628BA #DC50D1 #E683DE

Accessibility & contrast

On white

4.76
#C628BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#C628BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C628BA
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C628BA#FFFFFF#000000##FFFFFF
##C628BA1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1565BE
Deuteranopia (green-blind)
#5F7AB6
Tritanopia (blue-blind)
#CE3E71
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c628ba;
/* rgb */ color: rgb(198, 40, 186);
/* oklch */ color: oklch(58.7% 0.240 331.7);
Tailwind
colors: {
  custom: {
    50: '#dc76cf',
    500: '#c628ba',
    950: '#000000',
  },
}
SCSS
$custom: #c628ba;
$custom-light: #dc76cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c628ba",
  "rgb": {
    "r": 198,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 304.557,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.58672,
    "c": 0.23991,
    "h": 331.7
  },
  "luminance": 0.17069
}

Semantic roles & 50–950 ramp

primary
#C628BA
secondary
#7BCF81
accent
#E94B3E
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160A14
muted
#847C82

Preview Lab

Preview with #C628BA

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

Preview Lab → · Contrast checker → · Palette generator →

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