#C331BA#C331BA

#C331BA is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.8% C 0.230 H 330.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#C331BA
RGBrgb(195, 49, 186)
HSLhsl(304, 60%, 48%)
HSVhsv(304, 75%, 76%)
CMYKcmyk(0%, 74.9%, 4.6%, 23.5%)
CIE-LABlab(48.69, 70.67, -40.76)
CIE-LCHlch(48.69, 81.58, 330.02°)
OKLaboklab(58.82% 0.2012 -0.1124)
OKLCHoklch(58.82% 0.23 330.8)
XYZxyz(32.4669, 17.3465, 48.0831)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331BA #31C33A
analogous
#8331C3 #C331BA #C33171
triadic
#C331BA #BAC331 #31BAC3
tetradic
#C331BA #C38331 #31C33A #3171C3
square
#C331BA #C38331 #31C33A #3171C3
split-complementary
#C331BA #71C331 #31C383
monochromatic
#61185D #92258B #C331BA #D65BCE #E28CDD

Accessibility & contrast

On white

4.70
#C331BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#C331BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331BA
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331BA#FFFFFF#000000##FFFFFF
##C331BA1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#5F7BB6
Tritanopia (blue-blind)
#CB4473
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #c331ba;
/* rgb */ color: rgb(195, 49, 186);
/* oklch */ color: oklch(58.8% 0.230 330.8);
Tailwind
colors: {
  custom: {
    50: '#d979cf',
    500: '#c331ba',
    950: '#000000',
  },
}
SCSS
$custom: #c331ba;
$custom-light: #d979cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c331ba",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 303.699,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58822,
    "c": 0.23044,
    "h": 330.8
  },
  "luminance": 0.17344
}

Semantic roles & 50–950 ramp

primary
#C331BA
secondary
#83CC88
accent
#E34F45
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #C331BA

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

Preview Lab → · Contrast checker → · Palette generator →

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