#C331B7#C331B7

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

Color values

HEX#C331B7
RGBrgb(195, 49, 183)
HSLhsl(305, 60%, 48%)
HSVhsv(305, 75%, 76%)
CMYKcmyk(0%, 74.9%, 6.2%, 23.5%)
CIE-LABlab(48.54, 70.21, -39.26)
CIE-LCHlch(48.54, 80.44, 330.79°)
OKLaboklab(58.66% 0.2011 -0.1081)
OKLCHoklch(58.66% 0.228 331.7)
XYZxyz(32.1513, 17.2203, 46.4211)
Luminance0.1722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331B7 #31C33D
analogous
#8631C3 #C331B7 #C3316E
triadic
#C331B7 #B7C331 #31B7C3
tetradic
#C331B7 #C38631 #31C33D #316EC3
square
#C331B7 #C38631 #31C33D #316EC3
split-complementary
#C331B7 #6EC331 #31C386
monochromatic
#61185B #922589 #C331B7 #D65BCC #E28CDB

Accessibility & contrast

On white

4.73
#C331B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#C331B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331B7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331B7#FFFFFF#000000##FFFFFF
##C331B71.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566BB
Deuteranopia (green-blind)
#617AB4
Tritanopia (blue-blind)
#CB4372
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c331b7;
/* rgb */ color: rgb(195, 49, 183);
/* oklch */ color: oklch(58.7% 0.228 331.7);
Tailwind
colors: {
  custom: {
    50: '#d979cd',
    500: '#c331b7',
    950: '#000000',
  },
}
SCSS
$custom: #c331b7;
$custom-light: #d979cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c331b7",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 304.932,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58658,
    "c": 0.22829,
    "h": 331.7
  },
  "luminance": 0.17218
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C331B7

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

Preview Lab → · Contrast checker → · Palette generator →

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