#C331AB#C331AB

#C331AB is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.220 H 335.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C331AB
RGBrgb(195, 49, 171)
HSLhsl(310, 60%, 48%)
HSVhsv(310, 75%, 76%)
CMYKcmyk(0%, 74.9%, 12.3%, 23.5%)
CIE-LABlab(47.93, 68.43, -33.16)
CIE-LCHlch(47.93, 76.04, 334.15°)
OKLaboklab(58.03% 0.2004 -0.0905)
OKLCHoklch(58.03% 0.22 335.7)
XYZxyz(30.9551, 16.7418, 40.1214)
Luminance0.1674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331AB #31C349
analogous
#9231C3 #C331AB #C33162
triadic
#C331AB #ABC331 #31ABC3
tetradic
#C331AB #C39231 #31C349 #3162C3
square
#C331AB #C39231 #31C349 #3162C3
split-complementary
#C331AB #62C331 #31C392
monochromatic
#611855 #922580 #C331AB #D65BC2 #E28CD4

Accessibility & contrast

On white

4.83
#C331AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#C331AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331AB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331AB#FFFFFF#000000##FFFFFF
##C331AB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3264AE
Deuteranopia (green-blind)
#6679A8
Tritanopia (blue-blind)
#CD3C6B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c331ab;
/* rgb */ color: rgb(195, 49, 171);
/* oklch */ color: oklch(58.0% 0.220 335.7);
Tailwind
colors: {
  custom: {
    50: '#d978c4',
    500: '#c331ab',
    950: '#000000',
  },
}
SCSS
$custom: #c331ab;
$custom-light: #d978c4;
$custom-dark: #000000;
JSON
{
  "hex": "#c331ab",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 309.863,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58029,
    "c": 0.2199,
    "h": 335.7
  },
  "luminance": 0.16739
}

Semantic roles & 50–950 ramp

primary
#C331AB
secondary
#83CC8F
accent
#E35F45
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C331AB

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

Preview Lab → · Contrast checker → · Palette generator →

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