#C331AF#C331AF

#C331AF is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.223 H 334.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#C331AF
RGBrgb(195, 49, 175)
HSLhsl(308, 60%, 48%)
HSVhsv(308, 75%, 76%)
CMYKcmyk(0%, 74.9%, 10.3%, 23.5%)
CIE-LABlab(48.13, 69.02, -35.20)
CIE-LCHlch(48.13, 77.48, 332.97°)
OKLaboklab(58.24% 0.2007 -0.0964)
OKLCHoklch(58.24% 0.223 334.3)
XYZxyz(31.3422, 16.8966, 42.1598)
Luminance0.1689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C331AF #31C345
analogous
#8E31C3 #C331AF #C33166
triadic
#C331AF #AFC331 #31AFC3
tetradic
#C331AF #C38E31 #31C345 #3166C3
square
#C331AF #C38E31 #31C345 #3166C3
split-complementary
#C331AF #66C331 #31C38E
monochromatic
#611857 #922583 #C331AF #D65BC5 #E28CD6

Accessibility & contrast

On white

4.80
#C331AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#C331AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C331AF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C331AF#FFFFFF#000000##FFFFFF
##C331AF1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#657AAC
Tritanopia (blue-blind)
#CC3F6D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c331af;
/* rgb */ color: rgb(195, 49, 175);
/* oklch */ color: oklch(58.2% 0.223 334.3);
Tailwind
colors: {
  custom: {
    50: '#d978c7',
    500: '#c331af',
    950: '#000000',
  },
}
SCSS
$custom: #c331af;
$custom-light: #d978c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c331af",
  "rgb": {
    "r": 195,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 308.219,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.58235,
    "c": 0.22265,
    "h": 334.3
  },
  "luminance": 0.16894
}

Semantic roles & 50–950 ramp

primary
#C331AF
secondary
#83CC8D
accent
#E35A45
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C331AF

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

Preview Lab → · Contrast checker → · Palette generator →

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