#C331B8#C331B8

#C331B8 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.229 H 331.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#C331B8
RGBrgb(195, 49, 184)
HSLhsl(305, 60%, 48%)
HSVhsv(305, 75%, 76%)
CMYKcmyk(0%, 74.9%, 5.6%, 23.5%)
CIE-LABlab(48.59, 70.36, -39.76)
CIE-LCHlch(48.59, 80.82, 330.53°)
OKLaboklab(58.71% 0.2011 -0.1095)
OKLCHoklch(58.71% 0.229 331.4)
XYZxyz(32.2557, 17.2621, 46.9712)
Luminance0.1726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331B8 #31C33C
analogous
#8531C3 #C331B8 #C3316F
triadic
#C331B8 #B8C331 #31B8C3
tetradic
#C331B8 #C38531 #31C33C #316FC3
square
#C331B8 #C38531 #31C33C #316FC3
split-complementary
#C331B8 #6FC331 #31C385
monochromatic
#61185C #92258A #C331B8 #D65BCD #E28CDC

Accessibility & contrast

On white

4.72
#C331B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#C331B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331B8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331B8#FFFFFF#000000##FFFFFF
##C331B81.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BC
Deuteranopia (green-blind)
#607AB5
Tritanopia (blue-blind)
#CB4372
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c331b8;
/* rgb */ color: rgb(195, 49, 184);
/* oklch */ color: oklch(58.7% 0.229 331.4);
Tailwind
colors: {
  custom: {
    50: '#d979ce',
    500: '#c331b8',
    950: '#000000',
  },
}
SCSS
$custom: #c331b8;
$custom-light: #d979ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c331b8",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 304.521,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58713,
    "c": 0.229,
    "h": 331.4
  },
  "luminance": 0.17259
}

Semantic roles & 50–950 ramp

primary
#C331B8
secondary
#83CC89
accent
#E35145
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C331B8

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

Preview Lab → · Contrast checker → · Palette generator →

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