#C031B8#C031B8

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

Color values

HEX#C031B8
RGBrgb(192, 49, 184)
HSLhsl(303, 59%, 47%)
HSVhsv(303, 74%, 75%)
CMYKcmyk(0%, 74.5%, 4.2%, 24.7%)
CIE-LABlab(48.09, 69.72, -40.58)
CIE-LCHlch(48.09, 80.67, 329.80°)
OKLaboklab(58.26% 0.1981 -0.112)
OKLCHoklch(58.26% 0.228 330.5)
XYZxyz(31.4882, 16.8663, 46.9352)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C031B8 #31C039
analogous
#8131C0 #C031B8 #C03170
triadic
#C031B8 #B8C031 #31B8C0
tetradic
#C031B8 #C08131 #31C039 #3170C0
square
#C031B8 #C08131 #31C039 #3170C0
split-complementary
#C031B8 #70C031 #31C081
monochromatic
#5E185B #8F2589 #C031B8 #D559CE #E18ADC

Accessibility & contrast

On white

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

On black

4.37
#C031B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C031B8#FFFFFF#000000##FFFFFF
##C031B81.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2066BC
Deuteranopia (green-blind)
#5E79B5
Tritanopia (blue-blind)
#C74472
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c031b8;
/* rgb */ color: rgb(192, 49, 184);
/* oklch */ color: oklch(58.3% 0.228 330.5);
Tailwind
colors: {
  custom: {
    50: '#d778ce',
    500: '#c031b8',
    950: '#000000',
  },
}
SCSS
$custom: #c031b8;
$custom-light: #d778ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c031b8",
  "rgb": {
    "r": 192,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 303.357,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58262,
    "c": 0.22753,
    "h": 330.5
  },
  "luminance": 0.16864
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C031B8

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

Preview Lab → · Contrast checker → · Palette generator →

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