#C31DA1#C31DA1

#C31DA1 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.3% C 0.230 H 338.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#C31DA1
RGBrgb(195, 29, 161)
HSLhsl(312, 74%, 44%)
HSVhsv(312, 85%, 76%)
CMYKcmyk(0%, 85.1%, 17.4%, 23.5%)
CIE-LABlab(45.71, 72.07, -30.70)
CIE-LCHlch(45.71, 78.33, 336.93°)
OKLaboklab(56.28% 0.2146 -0.0833)
OKLCHoklch(56.28% 0.23 338.8)
XYZxyz(29.3789, 15.0571, 35.0704)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31DA1 #1DC33F
analogous
#921DC3 #C31DA1 #C31D4E
triadic
#C31DA1 #A1C31D #1DA1C3
tetradic
#C31DA1 #C3921D #1DC33F #1D4EC3
square
#C31DA1 #C3921D #1DC33F #1D4EC3
split-complementary
#C31DA1 #4EC31D #1DC392
monochromatic
#580D49 #8E1575 #C31DA1 #E23BC0 #EA71D1

Accessibility & contrast

On white

5.24
#C31DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#C31DA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31DA1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31DA1#FFFFFF#000000##FFFFFF
##C31DA11.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5CA4
Deuteranopia (green-blind)
#65759D
Tritanopia (blue-blind)
#CE2861
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #c31da1;
/* rgb */ color: rgb(195, 29, 161);
/* oklch */ color: oklch(56.3% 0.230 338.8);
Tailwind
colors: {
  custom: {
    50: '#da71bd',
    500: '#c31da1',
    950: '#000000',
  },
}
SCSS
$custom: #c31da1;
$custom-light: #da71bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c31da1",
  "rgb": {
    "r": 195,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 312.289,
    "s": 74.107,
    "l": 43.922
  },
  "oklch": {
    "l": 0.56279,
    "c": 0.23025,
    "h": 338.8
  },
  "luminance": 0.15054
}

Semantic roles & 50–950 ramp

primary
#C31DA1
secondary
#6CD080
accent
#F15D37
background
#FEF7FB
surface
#FCEDF6
border
#D5C8D0
text
#150912
muted
#847B81

Preview Lab

Preview with #C31DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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