#C331B2#C331B2

#C331B2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.225 H 333.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#C331B2
RGBrgb(195, 49, 178)
HSLhsl(307, 60%, 48%)
HSVhsv(307, 75%, 76%)
CMYKcmyk(0%, 74.9%, 8.7%, 23.5%)
CIE-LABlab(48.28, 69.46, -36.73)
CIE-LCHlch(48.28, 78.57, 332.13°)
OKLaboklab(58.39% 0.2009 -0.1008)
OKLCHoklch(58.39% 0.225 333.4)
XYZxyz(31.6401, 17.0158, 43.7288)
Luminance0.1701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331B2 #31C342
analogous
#8B31C3 #C331B2 #C33169
triadic
#C331B2 #B2C331 #31B2C3
tetradic
#C331B2 #C38B31 #31C342 #3169C3
square
#C331B2 #C38B31 #31C342 #3169C3
split-complementary
#C331B2 #69C331 #31C38B
monochromatic
#611859 #922585 #C331B2 #D65BC8 #E28CD8

Accessibility & contrast

On white

4.77
#C331B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#C331B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331B2
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331B2#FFFFFF#000000##FFFFFF
##C331B21.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#CC406F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #c331b2;
/* rgb */ color: rgb(195, 49, 178);
/* oklch */ color: oklch(58.4% 0.225 333.4);
Tailwind
colors: {
  custom: {
    50: '#d978c9',
    500: '#c331b2',
    950: '#000000',
  },
}
SCSS
$custom: #c331b2;
$custom-light: #d978c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c331b2",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 306.986,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58391,
    "c": 0.22475,
    "h": 333.4
  },
  "luminance": 0.17013
}

Semantic roles & 50–950 ramp

primary
#C331B2
secondary
#83CC8C
accent
#E35745
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C331B2

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

Preview Lab → · Contrast checker → · Palette generator →

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