#C331B4#C331B4

#C331B4 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.5% C 0.226 H 332.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#C331B4
RGBrgb(195, 49, 180)
HSLhsl(306, 60%, 48%)
HSVhsv(306, 75%, 76%)
CMYKcmyk(0%, 74.9%, 7.7%, 23.5%)
CIE-LABlab(48.38, 69.76, -37.74)
CIE-LCHlch(48.38, 79.31, 331.58°)
OKLaboklab(58.5% 0.201 -0.1037)
OKLCHoklch(58.5% 0.226 332.7)
XYZxyz(31.8424, 17.0967, 44.7941)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331B4 #31C340
analogous
#8931C3 #C331B4 #C3316B
triadic
#C331B4 #B4C331 #31B4C3
tetradic
#C331B4 #C38931 #31C340 #316BC3
square
#C331B4 #C38931 #31C340 #316BC3
split-complementary
#C331B4 #6BC331 #31C389
monochromatic
#61185A #922587 #C331B4 #D65BC9 #E28CD9

Accessibility & contrast

On white

4.75
#C331B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#C331B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331B4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331B4#FFFFFF#000000##FFFFFF
##C331B41.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B8
Deuteranopia (green-blind)
#627AB1
Tritanopia (blue-blind)
#CC4170
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c331b4;
/* rgb */ color: rgb(195, 49, 180);
/* oklch */ color: oklch(58.5% 0.226 332.7);
Tailwind
colors: {
  custom: {
    50: '#d979cb',
    500: '#c331b4',
    950: '#000000',
  },
}
SCSS
$custom: #c331b4;
$custom-light: #d979cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c331b4",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 306.164,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58497,
    "c": 0.22615,
    "h": 332.7
  },
  "luminance": 0.17094
}

Semantic roles & 50–950 ramp

primary
#C331B4
secondary
#83CC8B
accent
#E35545
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C331B4

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

Preview Lab → · Contrast checker → · Palette generator →

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