#C151A2#C151A2

#C151A2 is a mid, vivid pink. Relative luminance 0.198; OKLCH L 60.5% C 0.171 H 339.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#C151A2
RGBrgb(193, 81, 162)
HSLhsl(317, 47%, 54%)
HSVhsv(317, 58%, 76%)
CMYKcmyk(0%, 58%, 16.1%, 24.3%)
CIE-LABlab(51.65, 54.27, -22.10)
CIE-LCHlch(51.65, 58.60, 337.84°)
OKLaboklab(60.55% 0.1604 -0.0594)
OKLCHoklch(60.55% 0.171 339.7)
XYZxyz(31.4569, 19.8335, 36.3469)
Luminance0.1983 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C151A2 #51C170
analogous
#A851C1 #C151A2 #C1516A
triadic
#C151A2 #A2C151 #51A2C1
tetradic
#C151A2 #C1A851 #51C170 #516AC1
square
#C151A2 #C1A851 #51C170 #516AC1
split-complementary
#C151A2 #6AC151 #51C1A8
monochromatic
#70285C #9D3881 #C151A2 #D17EBA #E1ABD2

Accessibility & contrast

On white

4.23
#C151A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#C151A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C151A2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C151A2#FFFFFF#000000##000000
##C151A21.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5670A5
Deuteranopia (green-blind)
#77829F
Tritanopia (blue-blind)
#CB5472
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c151a2;
/* rgb */ color: rgb(193, 81, 162);
/* oklch */ color: oklch(60.5% 0.171 339.7);
Tailwind
colors: {
  custom: {
    50: '#d787bd',
    500: '#c151a2',
    950: '#000000',
  },
}
SCSS
$custom: #c151a2;
$custom-light: #d787bd;
$custom-dark: #000000;
JSON
{
  "hex": "#c151a2",
  "rgb": {
    "r": 193,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 316.607,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60546,
    "c": 0.17102,
    "h": 339.7
  },
  "luminance": 0.19831
}

Semantic roles & 50–950 ramp

primary
#C151A2
secondary
#9FCFAC
accent
#D77651
background
#FDF8FB
surface
#FBF0F6
border
#D4CBD0
text
#150C12
muted
#837D81

Preview Lab

Preview with #C151A2

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

Preview Lab → · Contrast checker → · Palette generator →

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