#C031AF#C031AF

#C031AF is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.8% C 0.221 H 333.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C031AF
RGBrgb(192, 49, 175)
HSLhsl(307, 59%, 47%)
HSVhsv(307, 74%, 75%)
CMYKcmyk(0%, 74.5%, 8.9%, 24.7%)
CIE-LABlab(47.62, 68.35, -36.03)
CIE-LCHlch(47.62, 77.26, 332.20°)
OKLaboklab(57.78% 0.1978 -0.0988)
OKLCHoklch(57.78% 0.221 333.4)
XYZxyz(30.5746, 16.5009, 42.1238)
Luminance0.1650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C031AF #31C042
analogous
#8A31C0 #C031AF #C03167
triadic
#C031AF #AFC031 #31AFC0
tetradic
#C031AF #C08A31 #31C042 #3167C0
square
#C031AF #C08A31 #31C042 #3167C0
split-complementary
#C031AF #67C031 #31C08A
monochromatic
#5E1856 #8F2583 #C031AF #D559C6 #E18AD7

Accessibility & contrast

On white

4.88
#C031AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#C031AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C031AF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C031AF#FFFFFF#000000##FFFFFF
##C031AF1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C64B2
Deuteranopia (green-blind)
#6278AC
Tritanopia (blue-blind)
#C9406D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c031af;
/* rgb */ color: rgb(192, 49, 175);
/* oklch */ color: oklch(57.8% 0.221 333.4);
Tailwind
colors: {
  custom: {
    50: '#d778c7',
    500: '#c031af',
    950: '#000000',
  },
}
SCSS
$custom: #c031af;
$custom-light: #d778c7;
$custom-dark: #000000;
JSON
{
  "hex": "#c031af",
  "rgb": {
    "r": 192,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 307.133,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57776,
    "c": 0.22108,
    "h": 333.4
  },
  "luminance": 0.16498
}

Semantic roles & 50–950 ramp

primary
#C031AF
secondary
#82CB8A
accent
#E35845
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #C031AF

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

Preview Lab → · Contrast checker → · Palette generator →

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