#C031B7#C031B7

#C031B7 is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.2% C 0.227 H 330.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C031B7
RGBrgb(192, 49, 183)
HSLhsl(304, 59%, 47%)
HSVhsv(304, 74%, 75%)
CMYKcmyk(0%, 74.5%, 4.7%, 24.7%)
CIE-LABlab(48.04, 69.56, -40.08)
CIE-LCHlch(48.04, 80.28, 330.05°)
OKLaboklab(58.21% 0.1981 -0.1105)
OKLCHoklch(58.21% 0.227 330.8)
XYZxyz(31.3837, 16.8245, 46.3851)
Luminance0.1682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C031B7 #31C03A
analogous
#8131C0 #C031B7 #C03170
triadic
#C031B7 #B7C031 #31B7C0
tetradic
#C031B7 #C08131 #31C03A #3170C0
square
#C031B7 #C08131 #31C03A #3170C0
split-complementary
#C031B7 #70C031 #31C081
monochromatic
#5E185A #8F2589 #C031B7 #D559CD #E18ADC

Accessibility & contrast

On white

4.81
#C031B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#C031B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C031B7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C031B7#FFFFFF#000000##FFFFFF
##C031B71.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BB
Deuteranopia (green-blind)
#5E79B4
Tritanopia (blue-blind)
#C84472
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c031b7;
/* rgb */ color: rgb(192, 49, 183);
/* oklch */ color: oklch(58.2% 0.227 330.8);
Tailwind
colors: {
  custom: {
    50: '#d778cd',
    500: '#c031b7',
    950: '#000000',
  },
}
SCSS
$custom: #c031b7;
$custom-light: #d778cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c031b7",
  "rgb": {
    "r": 192,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 303.776,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58207,
    "c": 0.2268,
    "h": 330.8
  },
  "luminance": 0.16822
}

Semantic roles & 50–950 ramp

primary
#C031B7
secondary
#82CB86
accent
#E34F45
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #C031B7

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

Preview Lab → · Contrast checker → · Palette generator →

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