#C31BA2#C31BA2

#C31BA2 is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 56.2% C 0.232 H 338.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#C31BA2
RGBrgb(195, 27, 162)
HSLhsl(312, 76%, 44%)
HSVhsv(312, 86%, 76%)
CMYKcmyk(0%, 86.2%, 16.9%, 23.5%)
CIE-LABlab(45.63, 72.57, -31.42)
CIE-LCHlch(45.63, 79.08, 336.59°)
OKLaboklab(56.24% 0.2159 -0.0854)
OKLCHoklch(56.24% 0.232 338.4)
XYZxyz(29.4200, 14.9976, 35.5209)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31BA2 #1BC33C
analogous
#901BC3 #C31BA2 #C31B4E
triadic
#C31BA2 #A2C31B #1BA2C3
tetradic
#C31BA2 #C3901B #1BC33C #1B4EC3
square
#C31BA2 #C3901B #1BC33C #1B4EC3
split-complementary
#C31BA2 #4EC31B #1BC390
monochromatic
#570C49 #8D1475 #C31BA2 #E338C2 #EB6ED2

Accessibility & contrast

On white

5.25
#C31BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#C31BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31BA2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31BA2#FFFFFF#000000##FFFFFF
##C31BA21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#64759E
Tritanopia (blue-blind)
#CE2761
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c31ba2;
/* rgb */ color: rgb(195, 27, 162);
/* oklch */ color: oklch(56.2% 0.232 338.4);
Tailwind
colors: {
  custom: {
    50: '#da71be',
    500: '#c31ba2',
    950: '#000000',
  },
}
SCSS
$custom: #c31ba2;
$custom-light: #da71be;
$custom-dark: #000000;
JSON
{
  "hex": "#c31ba2",
  "rgb": {
    "r": 195,
    "g": 27,
    "b": 162
  },
  "hsl": {
    "h": 311.786,
    "s": 75.676,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.23213,
    "h": 338.4
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#C31BA2
secondary
#69D17D
accent
#F25B36
background
#FEF7FB
surface
#FCEDF6
border
#D5C8D0
text
#150912
muted
#847B81

Preview Lab

Preview with #C31BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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