#C031B2#C031B2

#C031B2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.223 H 332.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#C031B2
RGBrgb(192, 49, 178)
HSLhsl(306, 59%, 47%)
HSVhsv(306, 74%, 75%)
CMYKcmyk(0%, 74.5%, 7.3%, 24.7%)
CIE-LABlab(47.78, 68.80, -37.56)
CIE-LCHlch(47.78, 78.38, 331.37°)
OKLaboklab(57.94% 0.1979 -0.1032)
OKLCHoklch(57.94% 0.223 332.4)
XYZxyz(30.8725, 16.6200, 43.6929)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C031B2 #31C03F
analogous
#8631C0 #C031B2 #C0316B
triadic
#C031B2 #B2C031 #31B2C0
tetradic
#C031B2 #C08631 #31C03F #316BC0
square
#C031B2 #C08631 #31C03F #316BC0
split-complementary
#C031B2 #6BC031 #31C086
monochromatic
#5E1858 #8F2585 #C031B2 #D559C9 #E18AD9

Accessibility & contrast

On white

4.86
#C031B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#C031B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C031B2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C031B2#FFFFFF#000000##FFFFFF
##C031B21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#6178AF
Tritanopia (blue-blind)
#C8416F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c031b2;
/* rgb */ color: rgb(192, 49, 178);
/* oklch */ color: oklch(57.9% 0.223 332.4);
Tailwind
colors: {
  custom: {
    50: '#d778c9',
    500: '#c031b2',
    950: '#000000',
  },
}
SCSS
$custom: #c031b2;
$custom-light: #d778c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c031b2",
  "rgb": {
    "r": 192,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 305.874,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57936,
    "c": 0.2232,
    "h": 332.4
  },
  "luminance": 0.16617
}

Semantic roles & 50–950 ramp

primary
#C031B2
secondary
#82CB89
accent
#E35545
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C031B2

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

Preview Lab → · Contrast checker → · Palette generator →

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